Re: Thinkpad x230 acpi_ibm

2013-04-26 Thread matt
On 04/25/13 10:46, Matthew Gibson wrote:
 I updated to 9-stable and now the acpi_ibm sysctl tree is created.
 Only a few of them seem to work.

There are some that could work but have different handles in the Lenovo
ACPI vs IBM.
For instance, there are per-interface RFKILLs in the X220 ACPI that
aren't really exposed in our acpi ibm, among others (kills for GPS,
WWAN, and I think WiMAX). I was hacking on this and the brightness, had
to put it down for a moment. I might get a chance to look at some of
this stuff later today.

The brightness control will not work, as far as I know on Linux their
thinkpad acpi driver skips its own brightness controls on these models
in favor of ACPI control. So far I was able to make a patch for
acpi_video that does work (the wrong way, by using \_SB.PCI0.VID for
attach, but making the brightness calls to \_SB.PCI0.PEG.VID) and was
testing a patch from John Baldwin to see if I could get acpi_video to
attach directly to the PEG device.

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


Thinkpad x230 acpi_ibm

2013-04-24 Thread Matthew Gibson
Hello,

I have a thinkpad x230. I have some of the issues others on this mailing
list have discussed, such as no brightness controls, and some of the
special buttons don't work.

I have some experience with freebsd, but not a lot.

I am running 9.1-RELEASE (r243825) on amd64.

The main issue is similiar to
http://lists.freebsd.org/pipermail/freebsd-acpi/2011-July/007227.html
If I load the acpi_ibm module, it shows up in kldstat, but no message is
given on the dmesg, and nothing appears in sysctl.

Any help is appreciated.

the volume buttons work, the speaker and microphone mute doesn't work. The
brightness fn keys don't work. Also the power button doesn't seem to
initiate a shutdown, even though I have
hw.acpi.power_button_state: S5

Matthew
___
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: Thinkpad x230 acpi_ibm

2013-04-24 Thread Erich Dollansky
Hi,

On Wed, 24 Apr 2013 09:46:21 -0700
Matthew Gibson mdg...@gmail.com wrote:

 Hello,
 
 I have a thinkpad x230. I have some of the issues others on this
 mailing list have discussed, such as no brightness controls, and some
 of the special buttons don't work.
 
 I have some experience with freebsd, but not a lot.
 
 I am running 9.1-RELEASE (r243825) on amd64.
 
 The main issue is similiar to
 http://lists.freebsd.org/pipermail/freebsd-acpi/2011-July/007227.html
 If I load the acpi_ibm module, it shows up in kldstat, but no message
 is given on the dmesg, and nothing appears in sysctl.
 
 Any help is appreciated.
 
 the volume buttons work, the speaker and microphone mute doesn't
 work. The brightness fn keys don't work. Also the power button
 doesn't seem to initiate a shutdown, even though I have
 hw.acpi.power_button_state: S5
 
I use the following scripts to help me with this problem on a X220:

http://www.alogt.com/freebsd/XonX220

starts X for me and

http://www.alogt.com/freebsd/setbrightness

is used to adjust brightness.

You might have to adjust them as some modules might be already loaded
at your machine. These scripts work for me on 10.

Erich
 Matthew
 ___
 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

___
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: Thinkpad x230 acpi_ibm

2013-04-24 Thread matt
On 04/24/13 09:46, Matthew Gibson wrote:
 Hello,

 I have a thinkpad x230. I have some of the issues others on this mailing
 list have discussed, such as no brightness controls, and some of the
 special buttons don't work.

 I have some experience with freebsd, but not a lot.

 I am running 9.1-RELEASE (r243825) on amd64.

 The main issue is similiar to
 http://lists.freebsd.org/pipermail/freebsd-acpi/2011-July/007227.html
 If I load the acpi_ibm module, it shows up in kldstat, but no message is
 given on the dmesg, and nothing appears in sysctl.

 Any help is appreciated.

 the volume buttons work, the speaker and microphone mute doesn't work. The
 brightness fn keys don't work. Also the power button doesn't seem to
 initiate a shutdown, even though I have
 hw.acpi.power_button_state: S5

 Matthew
 ___
 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
 .

Aside from scripts (which work great on X220), we need to figure out
what is wrong with Lenovo and what is wrong with acpi_video and get them
to meet in the middle.

I've had marginal success rewriting acpi_handles for just the brightness
methods, but basically Lenovo has some weird acpi locations that don't
seem to work, or need a trapdoor we're not doing. Usually one does work,
but acpi_video doesn't attach to the working ones.

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