Re: what is required to support a new laptop?
On 02/25/13 14:27, Eitan Adler wrote: > Tried randomly guessing path names, but nothing resulted in anything > but "Unknown object type '0'" I don't know how to read the ASL, what > other paths are likely to work? The "SCOPE" sections set the base path for the devices in a block, so if you find "device vga", scroll up and you'll Replace * with _BCL then _BCM -i "value in bcl results" (the bcl results are kind of readable in hex) _SB.PCI0.PEG0.VGA.LCD.* _SB.PCI0.PEG1.VGA.LCD.* _SB.PCI0.GFX0.DD02.* Are all I can find. There might be another issue than the thinkpad one at play if none work. All the BCMs call the AINT method (which I hope doesn't stand for AINT GONNA WORK :) ) They all are shell functions for the one under GFX0 (which also has a bunch of thermal checks, maybe it's the best bet). One other method to try is this LVLS method under any of the above...it is involved in transforming the incoming level to ec-values I think? Matt ___ freebsd-acpi@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-acpi To unsubscribe, send any mail to "freebsd-acpi-unsubscr...@freebsd.org"
Re: what is required to support a new laptop?
On 24 February 2013 21:41, matt wrote: > Next step is to call _BCL then _BCM at every location in the DSDT and > see if any of them work. > It's probable that one of them does... Tried randomly guessing path names, but nothing resulted in anything but "Unknown object type '0'" I don't know how to read the ASL, what other paths are likely to work? > Lenovo seems to like playing hide the correct acpi methods or something. Heh. I could try to add support for this laptop to acpi_ibm or acpi_video (wherever is a appropriate) once this is figured out. -- Eitan Adler ___ freebsd-acpi@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-acpi To unsubscribe, send any mail to "freebsd-acpi-unsubscr...@freebsd.org"
Re: what is required to support a new laptop?
On 02/24/13 17:29, Eitan Adler wrote: > [5398 root@gravity (100)% ...ts/sysutils/acpi_call !5!]#acpi_call -p > '\_SB.PCI0.PEG1.VGA.LCD._BQC' -o o 0 [5399 root@gravity (100)% > ...ports/sysutils/acpi_call ]#acpi_call -p > '\_SB.PCI0.PEG0.VGA.LCD._BQC' -o o 0 [5389 root@gravity (100)% > ...ports/sysutils/acpi_call ]#acpi_call -p > '\_SB.PCI0.PEG1.VGA.LCD._BCM' -i 50 50 [5390 root@gravity (100)% > ...ports/sysutils/acpi_call ]#acpi_call -p > '\_SB.PCI0.PEG1.VGA.LCD._BCM' -i 20 20 but nothing visible changes. > This is better than before (I think). Thanks! I hope this could work > in the end. Next step is to call _BCL then _BCM at every location in the DSDT and see if any of them work. It's probable that one of them does... Lenovo seems to like playing hide the correct acpi methods or something. Matt ___ freebsd-acpi@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-acpi To unsubscribe, send any mail to "freebsd-acpi-unsubscr...@freebsd.org"
Re: what is required to support a new laptop?
On 24 February 2013 20:16, matt wrote: > I made a typo :( Change the second call from _BCL to _BCM. > The first call _BCL would "trapdoor" a thinkpad, and it returns an > unknown object type 4. Acpi call has some formatting options to display > this "object", it's usually (or should be) a list of valid backlight > levels. The second call should set the value. _BQC will return the > current value. If that does not work, also try replacing PEG0 with PEG1. [5398 root@gravity (100)% ...ts/sysutils/acpi_call !5!]#acpi_call -p '\_SB.PCI0.PEG1.VGA.LCD._BQC' -o o 0 [5399 root@gravity (100)% ...ports/sysutils/acpi_call ]#acpi_call -p '\_SB.PCI0.PEG0.VGA.LCD._BQC' -o o 0 [5389 root@gravity (100)% ...ports/sysutils/acpi_call ]#acpi_call -p '\_SB.PCI0.PEG1.VGA.LCD._BCM' -i 50 50 [5390 root@gravity (100)% ...ports/sysutils/acpi_call ]#acpi_call -p '\_SB.PCI0.PEG1.VGA.LCD._BCM' -i 20 20 but nothing visible changes. This is better than before (I think). Thanks! I hope this could work in the end. -- Eitan Adler ___ freebsd-acpi@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-acpi To unsubscribe, send any mail to "freebsd-acpi-unsubscr...@freebsd.org"
Re: what is required to support a new laptop?
On 02/24/13 17:04, Eitan Adler wrote: > On 24 February 2013 19:57, matt wrote: >> On 01/29/13 10:24, Ian Smith wrote: >>> On Tue, 29 Jan 2013 12:46:43 -0500, Eitan Adler wrote: >>> > On 29 January 2013 12:29, Ian Smith wrote: >>> > > Ah right. I don't suppose kldload -v shows anything useful about the >>> > > problem loading it? Ah, never mind, it may be obvious .. lightly >>> > > skimming your asl.y530.gz, I recalled folks having to patch something >>> > > for Lenovo rather than IBM OEMIDs .. hunt, hunt .. ok, here it is: >>> > > >>> > > http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/164538 >>> > >>> > >>> > This is after the install of a patched acpi_ibm >>> > [3500 root@gravity /usr/src/sys/modules/acpi ]#kldload -v acpi_ibm >>> > Loaded acpi_ibm, id=12 >>> >>> Which looks maybe successful, on the face of it? .. >>> >>> > [5507 eitan@gravity (100)% ~ !1!]%sysctl dev.acpi_ibm >>> > sysctl: unknown oid 'dev.acpi_ibm' >>> >>> .. but clearly wasn't. >>> >> The Y series doesn't have the HKEY stuff, or it's not the same. You want >> acpi_video (as does every new Lenovo, thinkpad or not). >> >> The problem is Lenovo is putting the "correct" _BCL/_BCM under "PEG" >> devicessection from your dsdt follows, temporary workaround test >> after that > ... > >> This would be under _SB.PCI0.PEG0.VGA >> >> Try acpi_call -p '\_SB.PCI0.PEG0.VGA.LCD._BCL' >> then >> acpi_call -p '\_SB.PCI0.PEG0.VGA.LCD._BCL' -i 50 >> >> Experiment with the numbers. >> >> We need to fix acpi_video so it attaches to the correct _BCL on these >> laptops. > Unknown object type '4' > > regardless of what number is passed to -i. Same with the first call. > I made a typo :( Change the second call from _BCL to _BCM. The first call _BCL would "trapdoor" a thinkpad, and it returns an unknown object type 4. Acpi call has some formatting options to display this "object", it's usually (or should be) a list of valid backlight levels. The second call should set the value. _BQC will return the current value. If that does not work, also try replacing PEG0 with PEG1. Matt ___ freebsd-acpi@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-acpi To unsubscribe, send any mail to "freebsd-acpi-unsubscr...@freebsd.org"
Re: what is required to support a new laptop?
On 24 February 2013 19:57, matt wrote: > On 01/29/13 10:24, Ian Smith wrote: >> On Tue, 29 Jan 2013 12:46:43 -0500, Eitan Adler wrote: >> > On 29 January 2013 12:29, Ian Smith wrote: >> > > Ah right. I don't suppose kldload -v shows anything useful about the >> > > problem loading it? Ah, never mind, it may be obvious .. lightly >> > > skimming your asl.y530.gz, I recalled folks having to patch something >> > > for Lenovo rather than IBM OEMIDs .. hunt, hunt .. ok, here it is: >> > > >> > > http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/164538 >> > >> > >> > This is after the install of a patched acpi_ibm >> > [3500 root@gravity /usr/src/sys/modules/acpi ]#kldload -v acpi_ibm >> > Loaded acpi_ibm, id=12 >> >> Which looks maybe successful, on the face of it? .. >> >> > [5507 eitan@gravity (100)% ~ !1!]%sysctl dev.acpi_ibm >> > sysctl: unknown oid 'dev.acpi_ibm' >> >> .. but clearly wasn't. >> > > The Y series doesn't have the HKEY stuff, or it's not the same. You want > acpi_video (as does every new Lenovo, thinkpad or not). > > The problem is Lenovo is putting the "correct" _BCL/_BCM under "PEG" > devicessection from your dsdt follows, temporary workaround test > after that ... > This would be under _SB.PCI0.PEG0.VGA > > Try acpi_call -p '\_SB.PCI0.PEG0.VGA.LCD._BCL' > then > acpi_call -p '\_SB.PCI0.PEG0.VGA.LCD._BCL' -i 50 > > Experiment with the numbers. > > We need to fix acpi_video so it attaches to the correct _BCL on these > laptops. Unknown object type '4' regardless of what number is passed to -i. Same with the first call. -- Eitan Adler ___ freebsd-acpi@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-acpi To unsubscribe, send any mail to "freebsd-acpi-unsubscr...@freebsd.org"
Re: what is required to support a new laptop?
On 01/29/13 10:24, Ian Smith wrote: > On Tue, 29 Jan 2013 12:46:43 -0500, Eitan Adler wrote: > > On 29 January 2013 12:29, Ian Smith wrote: > > > Ah right. I don't suppose kldload -v shows anything useful about the > > > problem loading it? Ah, never mind, it may be obvious .. lightly > > > skimming your asl.y530.gz, I recalled folks having to patch something > > > for Lenovo rather than IBM OEMIDs .. hunt, hunt .. ok, here it is: > > > > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/164538 > > > > > > This is after the install of a patched acpi_ibm > > [3500 root@gravity /usr/src/sys/modules/acpi ]#kldload -v acpi_ibm > > Loaded acpi_ibm, id=12 > > Which looks maybe successful, on the face of it? .. > > > [5507 eitan@gravity (100)% ~ !1!]%sysctl dev.acpi_ibm > > sysctl: unknown oid 'dev.acpi_ibm' > > .. but clearly wasn't. > The Y series doesn't have the HKEY stuff, or it's not the same. You want acpi_video (as does every new Lenovo, thinkpad or not). The problem is Lenovo is putting the "correct" _BCL/_BCM under "PEG" devicessection from your dsdt follows, temporary workaround test after that Device (LCD) { Method (_ADR, 0, NotSerialized) { Return (0x0110) } Method (LVLS, 1, NotSerialized) { Store (One, Local0) Store (Zero, Local1) If (LEqual (OSYS, 0x07DC)) { Store (0x14, Local5) Store (PLV2, Local6) } Else { Store (0x0F, Local5) Store (PLVL, Local6) } While (Local0) { Add (Local1, 0x02, Local2) Store (DerefOf (Index (Local6, Local2)), Local3) And (Arg0, 0xFF, Local4) If (LEqual (Local4, Local3)) { Store (Zero, Local0) } Subtract (Local3, One, Local3) If (LEqual (Local4, Local3)) { Store (Zero, Local0) } If (LGreaterEqual (Local1, Local5)) { Store (Zero, Local0) } If (Local0) { Add (One, Local1, Local1) } } Return (Local1) } Method (_BCL, 0, NotSerialized) { If (LNotEqual (OSYS, 0x07DC)) { Return (PLVL) } Else { Return (PLV2) } } Method (_BCM, 1, NotSerialized) { If (IGDS) { Store (GFX0.DD02.LVLS (Arg0), Local1) Store (Local1, LPCB.EC0.BRTS) GFX0.AINT (One, Arg0) } Else { Store (LVLS (Arg0), Local1) Store (Local1, LPCB.EC0.BRTS) } Store (Arg0, BRTL) } Method (_BQC, 0, NotSerialized) { Return (BRTL) } } } } This would be under _SB.PCI0.PEG0.VGA Try acpi_call -p '\_SB.PCI0.PEG0.VGA.LCD._BCL' then acpi_call -p '\_SB.PCI0.PEG0.VGA.LCD._BCL' -i 50 Experiment with the numbers. We need to fix acpi_video so it attaches to the correct _BCL on these laptops. Matt ___ freebsd-acpi@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-acpi To unsubscribe, send any mail to "freebsd-acpi-unsubscr...@freebsd.org"
Re: what is required to support a new laptop?
On Tue, 29 Jan 2013 12:46:43 -0500, Eitan Adler wrote: > On 29 January 2013 12:29, Ian Smith wrote: > > Ah right. I don't suppose kldload -v shows anything useful about the > > problem loading it? Ah, never mind, it may be obvious .. lightly > > skimming your asl.y530.gz, I recalled folks having to patch something > > for Lenovo rather than IBM OEMIDs .. hunt, hunt .. ok, here it is: > > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/164538 > > > This is after the install of a patched acpi_ibm > [3500 root@gravity /usr/src/sys/modules/acpi ]#kldload -v acpi_ibm > Loaded acpi_ibm, id=12 Which looks maybe successful, on the face of it? .. > [5507 eitan@gravity (100)% ~ !1!]%sysctl dev.acpi_ibm > sysctl: unknown oid 'dev.acpi_ibm' .. but clearly wasn't. > > Hopefully adding the LEN0068 to ibm_ids might allow acpi_ibm to load; if > > not more digging may be needed for this model. > > I'm not sure what ID this is matching so I don't even know what to > look at to try a different one. Me neither. My Thinkpad T23 ASL shows this ID at: Device (HKEY) { Name (_HID, EisaId ("IBM0068")) Method (_STA, 0, NotSerialized) { Return (0x0F) } but I see no obvious corresponding device or other reference in yours. > > > I mentioned this was a Lenovo IdeaPad Y530 > > > > I'm assuming running 9.x? I didn't see uname output in this thread. > > [5505 eitan@gravity (100)% ~ ]%uname -a > FreeBSD gravity 9.1-RELEASE FreeBSD 9.1-RELEASE #3 r244942M: Wed Jan > 2 08:00:02 EST 2013 root@gravity:/usr/obj/usr/src/sys/GENERIC > amd64 > > The "M" is a patched AR8161 driver and now a patched acpi_ibm driver. Sorry, that was my one shot; now I'm out of my depth (and off to sleep) [ Baptiste, fair enough that patch not making it into 9.1 .. and it seems there's more to getting this particular model going anyway. ] cheers, Ian ___ freebsd-acpi@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-acpi To unsubscribe, send any mail to "freebsd-acpi-unsubscr...@freebsd.org"
Re: what is required to support a new laptop?
On 29 January 2013 12:29, Ian Smith wrote: > Ah right. I don't suppose kldload -v shows anything useful about the > problem loading it? Ah, never mind, it may be obvious .. lightly > skimming your asl.y530.gz, I recalled folks having to patch something > for Lenovo rather than IBM OEMIDs .. hunt, hunt .. ok, here it is: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/164538 This is after the install of a patched acpi_ibm [3500 root@gravity /usr/src/sys/modules/acpi ]#kldload -v acpi_ibm Loaded acpi_ibm, id=12 [5507 eitan@gravity (100)% ~ !1!]%sysctl dev.acpi_ibm sysctl: unknown oid 'dev.acpi_ibm' > Hopefully adding the LEN0068 to ibm_ids might allow acpi_ibm to load; if > not more digging may be needed for this model. I'm not sure what ID this is matching so I don't even know what to look at to try a different one. > > I mentioned this was a Lenovo IdeaPad Y530 > > I'm assuming running 9.x? I didn't see uname output in this thread. [5505 eitan@gravity (100)% ~ ]%uname -a FreeBSD gravity 9.1-RELEASE FreeBSD 9.1-RELEASE #3 r244942M: Wed Jan 2 08:00:02 EST 2013 root@gravity:/usr/obj/usr/src/sys/GENERIC amd64 The "M" is a patched AR8161 driver and now a patched acpi_ibm driver. -- Eitan Adler ___ freebsd-acpi@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-acpi To unsubscribe, send any mail to "freebsd-acpi-unsubscr...@freebsd.org"
Re: what is required to support a new laptop?
On Wed, Jan 30, 2013 at 04:29:39AM +1100, Ian Smith wrote: > On Tue, 29 Jan 2013 10:59:09 -0500, Eitan Adler wrote: > > On 29 January 2013 10:50, Ian Smith wrote: > > > On Mon, 28 Jan 2013 22:24:29 -0800, Kevin Oberman wrote: > > > > On Mon, Jan 28, 2013 at 11:06 AM, Eitan Adler > wrote: > > > > > On 28 January 2013 06:49, Lars Engels wrote: > > > > >> On Fri, Jan 25, 2013 at 08:55:40AM -0500, Eitan Adler wrote: > > > > >>> Hi all, > > > > >>> > > > > >>> I recently purchased a Lenovo Y530 and attempted to use some of > the > > > > >>> ACPI features (brightness of backlight, etc.) > > > > >>> > > > > >>> I attempted to load acpi_ibm but devd reported no events (running > with > > > > >>> devd -dD). What information might be useful to help support this > > > > >>> laptop? > > > > >> > > > > >> Did you set dev.acpi_ibm.0.events=1? > > > > > > > > > > I don't see this as an option at all. > > > > > > > > Setting dev.acpi_ibm.0.events=1 still does not cause the brightness > > > > functions to generate events. Could the initialmask and or availmask > > > > tie into this in some way? > > > > > > Have we seen 'sysctl dev.acpi_ibm' from this machine yet? Maybe clues? > > > Ideally after kldload acpi_ibm and before any sysctl changes .. > > > > [3462 root@gravity /home/eitan ]#kldload acpi_ibm.ko > > [3463 root@gravity /home/eitan ]#sysctl dev.acpi_ibm > > sysctl: unknown oid 'dev.acpi_ibm' > > Ah right. I don't suppose kldload -v shows anything useful about the > problem loading it? Ah, never mind, it may be obvious .. lightly > skimming your asl.y530.gz, I recalled folks having to patch something > for Lenovo rather than IBM OEMIDs .. hunt, hunt .. ok, here it is: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/164538 > > > I assume this is either missing a device ID and/or not the right driver at > all. > > Hopefully adding the LEN0068 to ibm_ids might allow acpi_ibm to load; if > not more digging may be needed for this model. > > > I mentioned this was a Lenovo IdeaPad Y530 > > I'm assuming running 9.x? I didn't see uname output in this thread. > > Strange; according to that PR this was supposed to have been MFC'd last > November, but didn't make it into 9.1-RELEASE sources. Committer cc'd. > > cheers, Ian 9.1 was already branched at the time I MFCed it to 9-STABLE so not it didn't make into 9.1-RELEASE. regards, Bapt pgpWfxqUCN9Rw.pgp Description: PGP signature
Re: what is required to support a new laptop?
On Tue, 29 Jan 2013 10:59:09 -0500, Eitan Adler wrote: > On 29 January 2013 10:50, Ian Smith wrote: > > On Mon, 28 Jan 2013 22:24:29 -0800, Kevin Oberman wrote: > > > On Mon, Jan 28, 2013 at 11:06 AM, Eitan Adler > > wrote: > > > > On 28 January 2013 06:49, Lars Engels wrote: > > > >> On Fri, Jan 25, 2013 at 08:55:40AM -0500, Eitan Adler wrote: > > > >>> Hi all, > > > >>> > > > >>> I recently purchased a Lenovo Y530 and attempted to use some of the > > > >>> ACPI features (brightness of backlight, etc.) > > > >>> > > > >>> I attempted to load acpi_ibm but devd reported no events (running > > with > > > >>> devd -dD). What information might be useful to help support this > > > >>> laptop? > > > >> > > > >> Did you set dev.acpi_ibm.0.events=1? > > > > > > > > I don't see this as an option at all. > > > > > > Setting dev.acpi_ibm.0.events=1 still does not cause the brightness > > > functions to generate events. Could the initialmask and or availmask > > > tie into this in some way? > > > > Have we seen 'sysctl dev.acpi_ibm' from this machine yet? Maybe clues? > > Ideally after kldload acpi_ibm and before any sysctl changes .. > > [3462 root@gravity /home/eitan ]#kldload acpi_ibm.ko > [3463 root@gravity /home/eitan ]#sysctl dev.acpi_ibm > sysctl: unknown oid 'dev.acpi_ibm' Ah right. I don't suppose kldload -v shows anything useful about the problem loading it? Ah, never mind, it may be obvious .. lightly skimming your asl.y530.gz, I recalled folks having to patch something for Lenovo rather than IBM OEMIDs .. hunt, hunt .. ok, here it is: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/164538 > I assume this is either missing a device ID and/or not the right driver at > all. Hopefully adding the LEN0068 to ibm_ids might allow acpi_ibm to load; if not more digging may be needed for this model. > I mentioned this was a Lenovo IdeaPad Y530 I'm assuming running 9.x? I didn't see uname output in this thread. Strange; according to that PR this was supposed to have been MFC'd last November, but didn't make it into 9.1-RELEASE sources. Committer cc'd. cheers, Ian ___ freebsd-acpi@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-acpi To unsubscribe, send any mail to "freebsd-acpi-unsubscr...@freebsd.org"
Re: what is required to support a new laptop?
On 29 January 2013 10:50, Ian Smith wrote: > On Mon, 28 Jan 2013 22:24:29 -0800, Kevin Oberman wrote: > > On Mon, Jan 28, 2013 at 11:06 AM, Eitan Adler wrote: > > > On 28 January 2013 06:49, Lars Engels wrote: > > >> On Fri, Jan 25, 2013 at 08:55:40AM -0500, Eitan Adler wrote: > > >>> Hi all, > > >>> > > >>> I recently purchased a Lenovo Y530 and attempted to use some of the > > >>> ACPI features (brightness of backlight, etc.) > > >>> > > >>> I attempted to load acpi_ibm but devd reported no events (running with > > >>> devd -dD). What information might be useful to help support this > > >>> laptop? > > >> > > >> Did you set dev.acpi_ibm.0.events=1? > > > > > > I don't see this as an option at all. > > > > Setting dev.acpi_ibm.0.events=1 still does not cause the brightness > > functions to generate events. Could the initialmask and or availmask > > tie into this in some way? > > Have we seen 'sysctl dev.acpi_ibm' from this machine yet? Maybe clues? > Ideally after kldload acpi_ibm and before any sysctl changes .. [3462 root@gravity /home/eitan ]#kldload acpi_ibm.ko [3463 root@gravity /home/eitan ]#sysctl dev.acpi_ibm sysctl: unknown oid 'dev.acpi_ibm' I assume this is either missing a device ID and/or not the right driver at all. I mentioned this was a Lenovo IdeaPad Y530 -- Eitan Adler ___ freebsd-acpi@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-acpi To unsubscribe, send any mail to "freebsd-acpi-unsubscr...@freebsd.org"
Re: what is required to support a new laptop?
On Mon, 28 Jan 2013 22:24:29 -0800, Kevin Oberman wrote: > On Mon, Jan 28, 2013 at 11:06 AM, Eitan Adler wrote: > > On 28 January 2013 06:49, Lars Engels wrote: > >> On Fri, Jan 25, 2013 at 08:55:40AM -0500, Eitan Adler wrote: > >>> Hi all, > >>> > >>> I recently purchased a Lenovo Y530 and attempted to use some of the > >>> ACPI features (brightness of backlight, etc.) > >>> > >>> I attempted to load acpi_ibm but devd reported no events (running with > >>> devd -dD). What information might be useful to help support this > >>> laptop? > >> > >> Did you set dev.acpi_ibm.0.events=1? > > > > I don't see this as an option at all. > > Setting dev.acpi_ibm.0.events=1 still does not cause the brightness > functions to generate events. Could the initialmask and or availmask > tie into this in some way? Have we seen 'sysctl dev.acpi_ibm' from this machine yet? Maybe clues? Ideally after kldload acpi_ibm and before any sysctl changes .. cheers, Ian ___ freebsd-acpi@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-acpi To unsubscribe, send any mail to "freebsd-acpi-unsubscr...@freebsd.org"
Re: what is required to support a new laptop?
On Mon, Jan 28, 2013 at 11:06 AM, Eitan Adler wrote: > On 28 January 2013 06:49, Lars Engels wrote: >> On Fri, Jan 25, 2013 at 08:55:40AM -0500, Eitan Adler wrote: >>> Hi all, >>> >>> I recently purchased a Lenovo Y530 and attempted to use some of the >>> ACPI features (brightness of backlight, etc.) >>> >>> I attempted to load acpi_ibm but devd reported no events (running with >>> devd -dD). What information might be useful to help support this >>> laptop? >> >> Did you set dev.acpi_ibm.0.events=1? > > I don't see this as an option at all. Setting dev.acpi_ibm.0.events=1 still does not cause the brightness functions to generate events. Could the initialmask and or availmask tie into this in some way? -- R. Kevin Oberman, Network Engineer E-mail: kob6...@gmail.com ___ freebsd-acpi@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-acpi To unsubscribe, send any mail to "freebsd-acpi-unsubscr...@freebsd.org"
Re: what is required to support a new laptop?
On 28 January 2013 06:49, Lars Engels wrote: > On Fri, Jan 25, 2013 at 08:55:40AM -0500, Eitan Adler wrote: >> Hi all, >> >> I recently purchased a Lenovo Y530 and attempted to use some of the >> ACPI features (brightness of backlight, etc.) >> >> I attempted to load acpi_ibm but devd reported no events (running with >> devd -dD). What information might be useful to help support this >> laptop? > > Did you set dev.acpi_ibm.0.events=1? I don't see this as an option at all. -- Eitan Adler ___ freebsd-acpi@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-acpi To unsubscribe, send any mail to "freebsd-acpi-unsubscr...@freebsd.org"
Re: what is required to support a new laptop?
On Fri, Jan 25, 2013 at 08:55:40AM -0500, Eitan Adler wrote: > Hi all, > > I recently purchased a Lenovo Y530 and attempted to use some of the > ACPI features (brightness of backlight, etc.) > > I attempted to load acpi_ibm but devd reported no events (running with > devd -dD). What information might be useful to help support this > laptop? Did you set dev.acpi_ibm.0.events=1? pgpZdDcKcsXWO.pgp Description: PGP signature
Re: what is required to support a new laptop?
On 27 January 2013 21:23, Kevin Oberman wrote: > On Sun, Jan 27, 2013 at 4:20 PM, Erich Dollansky > wrote: >> Hi, >> >> On Sun, 27 Jan 2013 18:24:36 -0500 >> Eitan Adler wrote: >> >>> On 27 January 2013 12:59, Kevin Oberman wrote: >>> > On Fri, Jan 25, 2013 at 9:25 PM, Eitan Adler >>> > wrote: >>> >> On 25 January 2013 14:51, Kevin Oberman wrote: >>> >>> There are several threads in the archives of acpi@ and mobile@ >>> >>> discussing this. Most things are pretty easy. Use xev to find the >>> >>> events generated by the volume buttons. >>> >> >>> >> I'm handling the volume keys with xbindkeys. >>> >> >>> >>> Mute and the ThinkLight (if >>> >>> your system has one) should work as is. >>> >> >>> >> Mute does not function - I am using xbindkeys to handle it. The >>> >> "video" key generates no event. >>> >> >>> >>> Brightness is a bit bigger issue as Lenovo has completely >>> >>> revamped it These buttons don't generate events. :-( >>> >> >>> >> Where *should* they be handled? How do they work on windows? >>> >> >>> >> FWIW they seem to change hw.acpi.video.brightness, but change >>> >> nothing visible on the screen. >>> >> >>> >>> You can install the acpi_call >>> >>> port and use it to set the brightness, but it is a pain as it >>> >>> does not allow for setting incremental changes, only absolute >>> >>> values.(16 of them). >>> >> >>> >> Any pointers for what to look at? I have no idea what I'm doing >>> >> w.r.t. computers ^W ACPI. >>> > >>> > Install sysutils/acpi_call >>> > kldload acpi_call >>> > acpi_call -p '\VBRC' -i [0-15] >>> > >>> > There seem to be some differences on the range, but in my T530 0=off >>> > and 15=full. >>> > >>> > Unfortunately, the brightness functions do not generate X events >>> > and I have not seen any posts on how to tie them to anything to >>> > adjust brightness. >>> >>> >>> [2881 root@gravity ~ ]#acpi_call -p '\VBRC' -i 1 >>> Unknown object type '0' >>> [2882 root@gravity ~ !5!]#acpi_call -p '\VBRC' -i 2 >>> Unknown object type '0' >>> [2883 root@gravity ~ !5!]#acpi_call -p '\VBRC' -i 0 >>> Unknown object type '0' >>> [2884 root@gravity ~ !5!]#acpi_call -p '\VBRC' -i 15 >>> Unknown object type '0' >>> >>> >> >> I can confirm that this works on an X220: >> >> acpi_call -p '\VBRC' -i $value >> >> It also works lower case for me. >> >> Erich > > Probably won't help, but can you confirm that acpi_call is loaded (kldstat)? Yes. I get different errors if it isn't. -- Eitan Adler ___ freebsd-acpi@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-acpi To unsubscribe, send any mail to "freebsd-acpi-unsubscr...@freebsd.org"
Re: what is required to support a new laptop?
On Sun, Jan 27, 2013 at 4:20 PM, Erich Dollansky wrote: > Hi, > > On Sun, 27 Jan 2013 18:24:36 -0500 > Eitan Adler wrote: > >> On 27 January 2013 12:59, Kevin Oberman wrote: >> > On Fri, Jan 25, 2013 at 9:25 PM, Eitan Adler >> > wrote: >> >> On 25 January 2013 14:51, Kevin Oberman wrote: >> >>> There are several threads in the archives of acpi@ and mobile@ >> >>> discussing this. Most things are pretty easy. Use xev to find the >> >>> events generated by the volume buttons. >> >> >> >> I'm handling the volume keys with xbindkeys. >> >> >> >>> Mute and the ThinkLight (if >> >>> your system has one) should work as is. >> >> >> >> Mute does not function - I am using xbindkeys to handle it. The >> >> "video" key generates no event. >> >> >> >>> Brightness is a bit bigger issue as Lenovo has completely >> >>> revamped it These buttons don't generate events. :-( >> >> >> >> Where *should* they be handled? How do they work on windows? >> >> >> >> FWIW they seem to change hw.acpi.video.brightness, but change >> >> nothing visible on the screen. >> >> >> >>> You can install the acpi_call >> >>> port and use it to set the brightness, but it is a pain as it >> >>> does not allow for setting incremental changes, only absolute >> >>> values.(16 of them). >> >> >> >> Any pointers for what to look at? I have no idea what I'm doing >> >> w.r.t. computers ^W ACPI. >> > >> > Install sysutils/acpi_call >> > kldload acpi_call >> > acpi_call -p '\VBRC' -i [0-15] >> > >> > There seem to be some differences on the range, but in my T530 0=off >> > and 15=full. >> > >> > Unfortunately, the brightness functions do not generate X events >> > and I have not seen any posts on how to tie them to anything to >> > adjust brightness. >> >> >> [2881 root@gravity ~ ]#acpi_call -p '\VBRC' -i 1 >> Unknown object type '0' >> [2882 root@gravity ~ !5!]#acpi_call -p '\VBRC' -i 2 >> Unknown object type '0' >> [2883 root@gravity ~ !5!]#acpi_call -p '\VBRC' -i 0 >> Unknown object type '0' >> [2884 root@gravity ~ !5!]#acpi_call -p '\VBRC' -i 15 >> Unknown object type '0' >> >> > > I can confirm that this works on an X220: > > acpi_call -p '\VBRC' -i $value > > It also works lower case for me. > > Erich Probably won't help, but can you confirm that acpi_call is loaded (kldstat)? -- R. Kevin Oberman, Network Engineer E-mail: kob6...@gmail.com ___ freebsd-acpi@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-acpi To unsubscribe, send any mail to "freebsd-acpi-unsubscr...@freebsd.org"
Re: what is required to support a new laptop?
Hi, On Sun, 27 Jan 2013 18:24:36 -0500 Eitan Adler wrote: > On 27 January 2013 12:59, Kevin Oberman wrote: > > On Fri, Jan 25, 2013 at 9:25 PM, Eitan Adler > > wrote: > >> On 25 January 2013 14:51, Kevin Oberman wrote: > >>> There are several threads in the archives of acpi@ and mobile@ > >>> discussing this. Most things are pretty easy. Use xev to find the > >>> events generated by the volume buttons. > >> > >> I'm handling the volume keys with xbindkeys. > >> > >>> Mute and the ThinkLight (if > >>> your system has one) should work as is. > >> > >> Mute does not function - I am using xbindkeys to handle it. The > >> "video" key generates no event. > >> > >>> Brightness is a bit bigger issue as Lenovo has completely > >>> revamped it These buttons don't generate events. :-( > >> > >> Where *should* they be handled? How do they work on windows? > >> > >> FWIW they seem to change hw.acpi.video.brightness, but change > >> nothing visible on the screen. > >> > >>> You can install the acpi_call > >>> port and use it to set the brightness, but it is a pain as it > >>> does not allow for setting incremental changes, only absolute > >>> values.(16 of them). > >> > >> Any pointers for what to look at? I have no idea what I'm doing > >> w.r.t. computers ^W ACPI. > > > > Install sysutils/acpi_call > > kldload acpi_call > > acpi_call -p '\VBRC' -i [0-15] > > > > There seem to be some differences on the range, but in my T530 0=off > > and 15=full. > > > > Unfortunately, the brightness functions do not generate X events > > and I have not seen any posts on how to tie them to anything to > > adjust brightness. > > > [2881 root@gravity ~ ]#acpi_call -p '\VBRC' -i 1 > Unknown object type '0' > [2882 root@gravity ~ !5!]#acpi_call -p '\VBRC' -i 2 > Unknown object type '0' > [2883 root@gravity ~ !5!]#acpi_call -p '\VBRC' -i 0 > Unknown object type '0' > [2884 root@gravity ~ !5!]#acpi_call -p '\VBRC' -i 15 > Unknown object type '0' > > I can confirm that this works on an X220: acpi_call -p '\VBRC' -i $value It also works lower case for me. Erich ___ freebsd-acpi@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-acpi To unsubscribe, send any mail to "freebsd-acpi-unsubscr...@freebsd.org"
Re: what is required to support a new laptop?
On 27 January 2013 12:59, Kevin Oberman wrote: > On Fri, Jan 25, 2013 at 9:25 PM, Eitan Adler wrote: >> On 25 January 2013 14:51, Kevin Oberman wrote: >>> There are several threads in the archives of acpi@ and mobile@ >>> discussing this. Most things are pretty easy. Use xev to find the >>> events generated by the volume buttons. >> >> I'm handling the volume keys with xbindkeys. >> >>> Mute and the ThinkLight (if >>> your system has one) should work as is. >> >> Mute does not function - I am using xbindkeys to handle it. The >> "video" key generates no event. >> >>> Brightness is a bit bigger issue as Lenovo has completely revamped it >>> These buttons don't generate events. :-( >> >> Where *should* they be handled? How do they work on windows? >> >> FWIW they seem to change hw.acpi.video.brightness, but change nothing >> visible on the screen. >> >>> You can install the acpi_call >>> port and use it to set the brightness, but it is a pain as it does not >>> allow for setting incremental changes, only absolute values.(16 of >>> them). >> >> Any pointers for what to look at? I have no idea what I'm doing w.r.t. >> computers ^W ACPI. > > Install sysutils/acpi_call > kldload acpi_call > acpi_call -p '\VBRC' -i [0-15] > > There seem to be some differences on the range, but in my T530 0=off > and 15=full. > > Unfortunately, the brightness functions do not generate X events and I > have not seen any posts on how to tie them to anything to adjust > brightness. [2881 root@gravity ~ ]#acpi_call -p '\VBRC' -i 1 Unknown object type '0' [2882 root@gravity ~ !5!]#acpi_call -p '\VBRC' -i 2 Unknown object type '0' [2883 root@gravity ~ !5!]#acpi_call -p '\VBRC' -i 0 Unknown object type '0' [2884 root@gravity ~ !5!]#acpi_call -p '\VBRC' -i 15 Unknown object type '0' -- Eitan Adler ___ freebsd-acpi@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-acpi To unsubscribe, send any mail to "freebsd-acpi-unsubscr...@freebsd.org"
Re: what is required to support a new laptop?
On Fri, Jan 25, 2013 at 9:25 PM, Eitan Adler wrote: > On 25 January 2013 14:51, Kevin Oberman wrote: >> There are several threads in the archives of acpi@ and mobile@ >> discussing this. Most things are pretty easy. Use xev to find the >> events generated by the volume buttons. > > I'm handling the volume keys with xbindkeys. > >> Mute and the ThinkLight (if >> your system has one) should work as is. > > Mute does not function - I am using xbindkeys to handle it. The > "video" key generates no event. > >> Brightness is a bit bigger issue as Lenovo has completely revamped it >> These buttons don't generate events. :-( > > Where *should* they be handled? How do they work on windows? > > FWIW they seem to change hw.acpi.video.brightness, but change nothing > visible on the screen. > >> You can install the acpi_call >> port and use it to set the brightness, but it is a pain as it does not >> allow for setting incremental changes, only absolute values.(16 of >> them). > > Any pointers for what to look at? I have no idea what I'm doing w.r.t. > computers ^W ACPI. Install sysutils/acpi_call kldload acpi_call acpi_call -p '\VBRC' -i [0-15] There seem to be some differences on the range, but in my T530 0=off and 15=full. Unfortunately, the brightness functions do not generate X events and I have not seen any posts on how to tie them to anything to adjust brightness. -- R. Kevin Oberman, Network Engineer E-mail: kob6...@gmail.com ___ freebsd-acpi@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-acpi To unsubscribe, send any mail to "freebsd-acpi-unsubscr...@freebsd.org"
Re: what is required to support a new laptop?
On 25 January 2013 14:51, Kevin Oberman wrote: > There are several threads in the archives of acpi@ and mobile@ > discussing this. Most things are pretty easy. Use xev to find the > events generated by the volume buttons. I'm handling the volume keys with xbindkeys. > Mute and the ThinkLight (if > your system has one) should work as is. Mute does not function - I am using xbindkeys to handle it. The "video" key generates no event. > Brightness is a bit bigger issue as Lenovo has completely revamped it > These buttons don't generate events. :-( Where *should* they be handled? How do they work on windows? FWIW they seem to change hw.acpi.video.brightness, but change nothing visible on the screen. > You can install the acpi_call > port and use it to set the brightness, but it is a pain as it does not > allow for setting incremental changes, only absolute values.(16 of > them). Any pointers for what to look at? I have no idea what I'm doing w.r.t. computers ^W ACPI. > Google for "FreeBSD acpi x220 notes". That should find the thread with > the details. I've been reading the thread and I think I may need a little bit more information / handholding while I figure this out -- Eitan Adler ___ freebsd-acpi@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-acpi To unsubscribe, send any mail to "freebsd-acpi-unsubscr...@freebsd.org"
Re: what is required to support a new laptop?
On Fri, Jan 25, 2013 at 6:12 AM, Glen Barber wrote: > On Fri, Jan 25, 2013 at 09:09:53AM -0500, Glen Barber wrote: >> On Fri, Jan 25, 2013 at 08:55:40AM -0500, Eitan Adler wrote: >> > Hi all, >> > >> > I recently purchased a Lenovo Y530 and attempted to use some of the >> > ACPI features (brightness of backlight, etc.) >> > >> > I attempted to load acpi_ibm but devd reported no events (running with >> > devd -dD). What information might be useful to help support this >> > laptop? >> > >> > Where are events such as "fn+pgup (brightness up) reported? >> > >> > http://freebsd.org/~eadler/files/asl.y530.gz - acpidump -dt if this >> > may be useful. >> > >> >> Try apci_toshiba.ko. >> > > Erm.. Sorry, that may not help. I'm confusing "thinkpad" for "toshiba". > Sorry for the noise... There are several threads in the archives of acpi@ and mobile@ discussing this. Most things are pretty easy. Use xev to find the events generated by the volume buttons. Mute and the ThinkLight (if your system has one) should work as is. Brightness is a bit bigger issue as Lenovo has completely revamped it These buttons don't generate events. :-( You can install the acpi_call port and use it to set the brightness, but it is a pain as it does not allow for setting incremental changes, only absolute values.(16 of them). Google for "FreeBSD acpi x220 notes". That should find the thread with the details. -- R. Kevin Oberman, Network Engineer E-mail: kob6...@gmail.com ___ freebsd-acpi@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-acpi To unsubscribe, send any mail to "freebsd-acpi-unsubscr...@freebsd.org"
Re: what is required to support a new laptop?
On Fri, Jan 25, 2013 at 09:09:53AM -0500, Glen Barber wrote: > On Fri, Jan 25, 2013 at 08:55:40AM -0500, Eitan Adler wrote: > > Hi all, > > > > I recently purchased a Lenovo Y530 and attempted to use some of the > > ACPI features (brightness of backlight, etc.) > > > > I attempted to load acpi_ibm but devd reported no events (running with > > devd -dD). What information might be useful to help support this > > laptop? > > > > Where are events such as "fn+pgup (brightness up) reported? > > > > http://freebsd.org/~eadler/files/asl.y530.gz - acpidump -dt if this > > may be useful. > > > > Try apci_toshiba.ko. > Erm.. Sorry, that may not help. I'm confusing "thinkpad" for "toshiba". Sorry for the noise... Glen pgpAzqAidUByR.pgp Description: PGP signature
Re: what is required to support a new laptop?
On Fri, Jan 25, 2013 at 08:55:40AM -0500, Eitan Adler wrote: > Hi all, > > I recently purchased a Lenovo Y530 and attempted to use some of the > ACPI features (brightness of backlight, etc.) > > I attempted to load acpi_ibm but devd reported no events (running with > devd -dD). What information might be useful to help support this > laptop? > > Where are events such as "fn+pgup (brightness up) reported? > > http://freebsd.org/~eadler/files/asl.y530.gz - acpidump -dt if this > may be useful. > Try apci_toshiba.ko. Glen pgpOMRsOQMDF8.pgp Description: PGP signature