Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-08-02 Thread Anthony Jenkins
Awesome! The battery thing is kind of baffling, as a developer I'd start by tracking down where we're (FreeBSD) getting the bogus values (I don't recall the battery problem details). i'm gonna work to get my ACPI CMOS region support patch into the codebase, seems to be helpful to a lot of peop

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 t

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-26 Thread Daniele Mazzotti
Hi Kevin, that is a good news but I have a RELEASE therefore if I am not wrong I should recompile my kernel. Did I miss something? Cheers, Daniele. 2014-07-26 18:52 GMT+02:00 Kevin Oberman : > On Sat, Jul 26, 2014 at 9:31 AM, Kevin Oberman > wrote: > >> On Sat, Jul 26, 2014 at 1:46 AM, Daniel

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 wrote: > On Sat, Jul 26, 2014 at 1:46 AM, Daniele Mazzotti > 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 wait before >> removing it

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-26 Thread Kevin Oberman
On Sat, Jul 26, 2014 at 1:46 AM, Daniele Mazzotti 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 wait before > removing it as I was not sure that intel video driver would have worked. My >

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 sw

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-25 Thread Kevin Oberman
On Fri, Jul 25, 2014 at 3:19 PM, Bykov Vladislav <> 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 switch b

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. Th

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-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-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-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 cou

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 Kevin Oberman
On Mon, Jul 21, 2014 at 12:47 PM, Daniele Mazzotti 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 the patch,

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-21 Thread Daniele Mazzotti
nt from Yahoo Mail on Android > <https://overview.mail.yahoo.com/mobile/?.src=Android> > > -- > * From: * Ian Smith ; > * To: * John Baldwin ; > * Cc: * ; Anthony Jenkins < > anthony.b.jenk...@att.net>; Daniele Mazzotti ; > * Subject:

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 hav

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 John Baldwin
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 > >> businesses trip and I will be forced to put this debug thing on

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

2014-07-19 Thread Ian Smith
On Wed, 16 Jul 2014 17:08:03 -0400, Anthony Jenkins wrote: > On 07/16/2014 13:16, Ian Smith wrote: [..] > > > http://pastebin.com/P0B44u0c > > > > Either by show raw and save, or by download, the patch has ^M lineends. > Bah! Well that'd explain it... I'm generating the file on a pure > F

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 person

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

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

2014-07-16 Thread Anthony Jenkins
On 07/16/2014 13:16, 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 > >> businesses trip and I will be forced to put this debug thing on hold > >>

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: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-16 Thread Anthony Jenkins
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. > Bah... really wanted to figure out the patch problem. I su

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-15 Thread Daniele Mazzotti
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. @Ian: there is only one thing I got from this problem NEVER BUY A SONY VAIO. It took 3 years before having support for

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-15 Thread Ian Smith
On Tue, 15 Jul 2014 20:47:44 +0200, Daniele Mazzotti wrote: > 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 hav

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-15 Thread Daniele Mazzotti
Hi Anthony, The error log was attached to my previous email. Cheers, Daniele. Il 15/lug/2014 22:09 "Daniele Mazzotti" ha scritto: > 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/atr

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 a

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 : > On 07/15/2014 13:49, Da

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

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 : > On

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-15 Thread Ian Smith
On Tue, 15 Jul 2014 19:49:46 +0200, Daniele Mazzotti wrote: > 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

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 ca

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 -d

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 ACPI

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-12 Thread Daniele Mazzotti
Hi Guys, I have successfully compiled and installed the kernel with ACPI debug. @Anthony: my problem was definitely related to an outdated code base. So my question is now: "what should I do?". Is there any log or command I should issue in order to have a better understanding of the problem? Ch

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-11 Thread Daniele Mazzotti
Hi Anthony, here it is: $FreeBSD: release/10.0.0/Makefile 255784 2013-09-22 07:30:17Z andrew $ I will try to check how it is possible to update the code base. Cheers, Daniele. 2014-07-11 20:03 GMT+02:00 Daniele Mazzotti : > Hi Anthony, > > Thanks for the good hint. I will be searching for the

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-11 Thread Daniele Mazzotti
Hi Anthony, Thanks for the good hint. I will be searching for the revision info as soon as I will be back home (3 hours from now more or less). Cheers, Daniele. Il 11/lug/2014 19:59 "Anthony Jenkins" ha scritto: > E... good question :-) I got mine from Subversion, so in '/usr/src' I > can

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-11 Thread Anthony Jenkins
E... good question :-) I got mine from Subversion, so in '/usr/src' I can run 'svn info' and see the revision. Your revision might be at the top of /usr/src/Makefile - it is in mine: # # $FreeBSD: head/Makefile 268191 2014-07-02 22:34:06Z marcel $ # I'm only wondering because it might be a

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-11 Thread Daniele Mazzotti
Actually I think I downloaded the source code back in May when I updated from RC3 to the current version. How can I check the code revision on my machine? Cheers, Daniele. Il 11/lug/2014 19:37 "Anthony Jenkins" ha scritto: > I just tried a build of GENERIC + 'options ACPI_DEBUG' and it seems to

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-11 Thread Anthony Jenkins
I just tried a build of GENERIC + 'options ACPI_DEBUG' and it seems to get past the error you're seeing. What revision of the source code are you using... or where'd you get it from? Anthony On 07/11/2014 13:12, Daniele Mazzotti wrote: > Hi guys, > > everything as planned! I am getting a compi

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-11 Thread Daniele Mazzotti
Yep. Basically the prerequisites for compiling are ok and the procedure I followed should be correct as well. I am still getting the error when try to compile the module/crypto and I do not know why. I think I am going to write an email to the "general questions" mailing list as suggested in the ha

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 i

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 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 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-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" debug.

Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E

2014-07-10 Thread Anthony Jenkins
On 07/10/2014 16:49, Daniele Mazzotti wrote: > 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 > displ