Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-08-01 Thread Daniele Mazzotti
Hello everybody, after several tries I finally managed to fix two out of three issue I had on my Sony Vaio. After I switched to Intel driver I was forced to update my system to STABLE (@Kevin: thanks for the support - I tried to write a set of scripts to download the required VT sources and copy

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-26 Thread Kevin Oberman
On Fri, Jul 25, 2014 at 3:19 PM, Bykov Vladislav envol...@gmail.com wrote: On Fri, Jul 25, 2014 at 10:43:11PM +0200, Daniele Mazzotti wrote: The error I get anytime I try to switch between terminals is the following one drmDropMaster failed: Unknown error: -22 This is okay, if you can't

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-26 Thread Daniele Mazzotti
Hi, thanks again for your precious help. The suspend mode is not working yet as VESA option is still in my kernel configuration. I wanted to wait before removing it as I was not sure that intel video driver would have worked. My intention was to have a working setup with intel and being able to

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-26 Thread Kevin Oberman
On Sat, Jul 26, 2014 at 9:31 AM, Kevin Oberman rkober...@gmail.com wrote: On Sat, Jul 26, 2014 at 1:46 AM, Daniele Mazzotti kappe...@gmail.com wrote: Hi, thanks again for your precious help. The suspend mode is not working yet as VESA option is still in my kernel configuration. I wanted to

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-25 Thread Daniele Mazzotti
Hi, I kept my mouth shut for two days as I tried to follow your suggestion regarding VESA. This is the situation so far: I feel like in the dining philosophers problem. lspci -lv showed me the following: vgapci1@pci0:0:2:0:class=0x03 card=0x9080104d chip=0x01168086 rev=0x09 hdr=0x00

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-25 Thread Bykov Vladislav
On Fri, Jul 25, 2014 at 10:43:11PM +0200, Daniele Mazzotti wrote: The error I get anytime I try to switch between terminals is the following one drmDropMaster failed: Unknown error: -22 This is okay, if you can't switch back to tty after starting Xorg in KMS mode using old syscons driver. There

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-22 Thread Daniele Mazzotti
Hello there, @Kevin: Yes, I can see some disk activity but I cannot login to a ssh console as the daemon is not running and I do not have any other PC other than this one in my apartment. I usually have a graphical session on F9 and I tend to suspend the PC from a root terminal. As my video card

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-22 Thread Bykov Vladislav
On Tue, Jul 22, 2014 at 07:58:17PM +0200, Daniele Mazzotti wrote: @Vladislav: I have just one question regarding your's. If I remove VESA from my kernel how can I run X in vesa mode? Is it still possible or the kernel module is not related with the Xorg funcionality at all, therefore is it

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-21 Thread Ian Smith
On Mon, 21 Jul 2014 12:30:23 -0400, John Baldwin wrote: On Thursday 17 July 2014 03:16:10 Ian Smith wrote: On Wed, 16 Jul 2014 09:26:08 -0400, Anthony Jenkins wrote: On 07/16/2014 01:32, Daniele Mazzotti wrote: Hi guys, thanks again for the support, but I am leaving for a

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-21 Thread Anthony Jenkins
Thanks all,  the more feedback the better! John, yeah it was that multibyte accesses (which I went ahead implemented... shouldn't hurt anything). Also I need to double-check that I allow atrtc unrestricted reads/writes, but restrict ACPI to read-only accesses to the RTC registers. I'll have

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-21 Thread Daniele Mazzotti
/?.src=Android -- * From: * Ian Smith smi...@nimnet.asn.au; * To: * John Baldwin j...@baldwin.cx; * Cc: * freebsd-acpi@freebsd.org; Anthony Jenkins anthony.b.jenk...@att.net; Daniele Mazzotti kappe...@gmail.com; * Subject: * Re: ACPI support - Freebsd 10 on Sony

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-21 Thread Kevin Oberman
On Mon, Jul 21, 2014 at 12:47 PM, Daniele Mazzotti kappe...@gmail.com wrote: Hi guys, I successfully managed to survive the business trip and this damn hot weekend here in the north Germany, so I am back on track! I have a few (not that nice to me) news to you all: 1. I have applied

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-21 Thread Bykov Vladislav
On Mon, Jul 21, 2014 at 09:47:52PM +0200, Daniele Mazzotti wrote: Actually when I put the pc to suspend and then try to wake it up, the screen stays black. I never had many, but I am running out of ideas! Hello, I had exactly same problem with suspend here. Just remove VESA device from your

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-21 Thread Anthony Jenkins
I have the same resume issue with my HP laptop, but it's almost definitely an issue with backlight control. Before my ACPI CMOS patch, my laptop would suspend and immediately resume, and would not power offb(had to hold down power button). After patch, I could power off and suspend/resume (I

Re: atrtc.c patch for ACPI CMOS region (was Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E)

2014-07-17 Thread Anthony Jenkins
On 07/16/2014 19:39, Daniele Mazzotti wrote: Hi guys, @Anthony: actually I am a he and not a she and I never thought about changing my nature below the waist :-). Oops! Sorry about that... By the way I will try to apply the patch as soon as I will be back home as I left my personal PC at

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-16 Thread Ian Smith
On Wed, 16 Jul 2014 09:26:08 -0400, Anthony Jenkins wrote: On 07/16/2014 01:32, Daniele Mazzotti wrote: Hi guys, thanks again for the support, but I am leaving for a businesses trip and I will be forced to put this debug thing on hold for a while. I will be back on track next week.

Re: atrtc.c patch for ACPI CMOS region (was Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E)

2014-07-16 Thread Daniele Mazzotti
Hi guys, @Anthony: actually I am a he and not a she and I never thought about changing my nature below the waist :-). By the way I will try to apply the patch as soon as I will be back home as I left my personal PC at home and I won't be back until Monday. I will let you know if that will fix my

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-15 Thread Daniele Mazzotti
Hello Anthony, I made a few step ahead (at least on my side) and tried to follow the recommendation from the handbook ( http://www.pl.freebsd.org/doc/handbook/acpi-debug.html). I was able to turn on the verbose boot and here you can find the output: http://pastebin.com/kkDAZEVb. At boot time I

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-15 Thread Daniele Mazzotti
Hi Ian, I have just rebooted the PC after turning the deep debug on. Here is the output: http://pastebin.com/H61zJhqc. It is very likely that the dmesg has been cut due to the large amount of output. Is there any way to have it all? Cheers, Daniele. 2014-07-15 20:22 GMT+02:00 Ian Smith

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-15 Thread Anthony Jenkins
On 07/15/2014 13:49, Daniele Mazzotti wrote: Hello Anthony, I just noticed that I forgot to answer the part where you proposed me to patch my ACPI. Unfortunately I am running and AMD 64 architecture and I do not think this is fitting with what you already patched. x86-based architectures use

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-15 Thread Daniele Mazzotti
Hi Anthony, I tried to apply the patch but it seems like 6 out of 7 entries are dismissed. Is it enough to just type # cd /usr/src patch path/to/atrtc.c.patch as root? Shouldn't I recompile anything? Cheers, Daniele. 2014-07-15 21:39 GMT+02:00 Anthony Jenkins anthony.b.jenk...@att.net:

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-15 Thread Anthony Jenkins
What's the error(s)? As root, you should type cd /usr/src patch path/to/atrtc.c.patch ...the '#' was just an indicator of the root user shell prompt. If it applies properly, rebuild the kernel and reboot. If not, send your /usr/src/sys/x86/isa/atrtc.c file and I can manually patch it and

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-14 Thread Anthony Jenkins
Hi Daniele, Sorry it took so long to get back to you. I tried the .layer and .level sysctls I asked you to set, and they didn't result in any valuable output. I tried setting debug.acpi.level to ACPI_LV_VERBOSITY2 which prints every statement interpreted from the AML (presumably only the

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-14 Thread Daniele Mazzotti
Hi Anthony, no problem for the delay. I did not expect you to answer 5 seconds or 5 minutes after my email as I think we all have lives and jobs that keep us busy quite a lot. So, no problem at all! Regarding the issue we are discussing about, I think I already posted the output of acpidump -dt

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-11 Thread Anthony Jenkins
Hi Daniele, I was just going from acpi(4) man page; you'll likely have to build a new kernel with 'options ACPI_DEBUG' added to your kernel config file, as I don't know if it's even possible to turn on the logging I want at runtime. [ajenkins@ajenkins-hplaptop /usr/home/ajenkins]$ grep -i acpi

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-11 Thread Daniele Mazzotti
Hi guys, thanks again for the support. @Takanori: here you go http://pastebin.com/F0a2mZP4 @Anthony: I will try to include the options in a custom kernel and compile it. As this is the first time after years I am compiling a custom kernel it will take a few time I guess. Just let me know if the

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-11 Thread Daniele Mazzotti
Hi guys, everything as planned! I am getting a compiling error :-). This is the way i managed to update the GENERIC kernel # Bus support. deviceacpi optionsACPI_DEBUG# Debug support for ACPI devicepci and this is the result of # *make buildkernel KERNCONF=MYKERNEL*

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-11 Thread Anthony Jenkins
Takawata might be able to help you better than me; I'm trying to learn this ACPI stuff myself (trying to add support for ACPI CMOS regions and fix my own laptop's flakiness). If you're just running a generic kernel, I'm pretty sure all you have to do is: 1. Ensure you have the system sources

ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-10 Thread Daniele Mazzotti
Hello there, it is been a while since I finished installing Freebsd 10 on my Sony Vaio PC and resolving (or at least I am trying to) one by one, all the problems this hardware is giving me. Actually I cannot find a solution to correctly display the battery level on my laptop. If I unplug my PC

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-10 Thread Daniele Mazzotti
Hello Anthony, thanks for the quick reply! I tried what you suggested. loader.conf: # Module for Windows Partition Linux Mount fuse_load=YES autoboot_delay=5 #acpi_sony_load=YES # Debugging Symbols for ACPI debug.acpi.layer=ACPI_BATTERY debug.acpi.level=ACPI_LV_ALL_EXCEPTIONS