PDA

View Full Version : IBM Thinkpad T23 / R31: System does not halt properly


nimoi
05-24-2007, 09:33 AM
Hi all,

I've installed PC-BSD on a IBM Thinkpad T23 and on a IBM Thinkpad R31. I think first time was a pre 1.3, the second installation was a 1.3.x, 1.3.01 I suppose.

In both cases, installation itself went properly, but if I want to shutdown or reboot, the process of shutting down starts and at the end, when the notebook should have switched of or at least shut have told me, that I can switch it of, I just get blank black screen an the cpu-cooler ist slowly getting faster and faster. That's it.

At first, I was quite sure, it's an ACPI related thing, but it isn't.


I can tell you, I've never had that with FreeBSD 4.x, 5.x, 6.x. I swear :-)!

What's the difference? Does anybody have an idea?


Thanks,
Ben


PS: Please don't tell, I'm the only one ;-)!

Florian
07-01-2007, 12:41 AM
Hi, nimoi

Well some things would be very interesting:

Fire up a root shell
-> Run -> "konsole" [ENTER] -> "su" [ENTER] -> Enter your root password and post - with code tags - the output of the following commands:
# kldload acpi_ibm
# kldstat
# sysctl -a | grep acpi
# sysctl -a | grep acpi_ibm

This information would be sufficient to tell you if halting is supported.

nimoi
07-02-2007, 05:18 PM
Florian,
Thanks for your reply!


I changed the harddisk of my R31 and installed a pc-bsd 1.3 on it again, to get the output you asked me for. But as I now cannot approve the error anymore :-(, well :-), I suppose the output isn't very much of a interest to you anymore. Nevertheless, if you're interested, you'll find it below.

I used to load the ibm_acpi module on my FreeBSD Thinkpads. I didn't do that on the PC-BSD installations - don't know why.


Well, I don't know what happend, but I'm happy having my PC-BSD on my R31 - I didn't do any strange things while setting up PC-BSD on these Thinkpads... T23, T22, R31. Just strange.

Is it possible that one of the last few updates did solve something acpi-related?



Ben




This is after loading acpi_ibm.ko:


pcbsd-1084# kldstat
Id Refs Address Size Name
1 15 0xc0400000 742370 kernel
3 2 0xc0b4e000 1af50 linux.ko
4 1 0xc0b69000 4784 acpi_ibm.ko
5 2 0xc0b6e000 58554 acpi.ko
6 1 0xc36db000 5000 snd_ich.ko
7 1 0xc36e0000 1c000 sound.ko
8 1 0xc3718000 6000 linprocfs.ko
9 1 0xc3746000 4000 logo_saver.ko



pcbsd-1084# sysctl -a | grep acpi | grep -v ibm
acpisem 16 1K - 16 64
acpidev 60 2K - 60 32
acpitask 0 0K - 54 32
acpica 1470 78K - 30702 16,32,64,128,256,512,1024
acpi_perf 1 1K - 1 64
debug.acpi.do_powerstate: 1
debug.acpi.acpi_ca_version: 0x20041119
debug.acpi.semaphore_debug: 0
hw.acpi.supported_sleep_state: S1 S3 S4 S5
hw.acpi.power_button_state: S5
hw.acpi.sleep_button_state: S1
hw.acpi.lid_switch_state: NONE
hw.acpi.standby_state: S1
hw.acpi.suspend_state: S3
hw.acpi.sleep_delay: 1
hw.acpi.s4bios: 0
hw.acpi.verbose: 0
hw.acpi.reset_video: 1
hw.acpi.cpu.cx_supported: C1/1 C2/1 C3/80
hw.acpi.cpu.cx_lowest: C1
hw.acpi.cpu.cx_usage: 100.00% 0.00% 0.00%
hw.acpi.acline: 1
hw.acpi.battery.life: 99
hw.acpi.battery.time: -1
hw.acpi.battery.state: 2
hw.acpi.battery.units: 1
hw.acpi.battery.info_expire: 5
hw.acpi.thermal.min_runtime: 0
hw.acpi.thermal.polling_rate: 10
hw.acpi.thermal.tz0.temperature: 47.0C
hw.acpi.thermal.tz0.active: -1
hw.acpi.thermal.tz0.passive_cooling: 0
hw.acpi.thermal.tz0.thermal_flags: 0
hw.acpi.thermal.tz0._PSV: -1
hw.acpi.thermal.tz0._HOT: -1
hw.acpi.thermal.tz0._CRT: 103.0C
hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
hw.acpi.thermal.tz1.temperature: 43.0C
hw.acpi.thermal.tz1.active: -1
hw.acpi.thermal.tz1.passive_cooling: 0
hw.acpi.thermal.tz1.thermal_flags: 0
hw.acpi.thermal.tz1._PSV: -1
hw.acpi.thermal.tz1._HOT: -1
hw.acpi.thermal.tz1._CRT: 74.0C
hw.acpi.thermal.tz1._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
machdep.acpi_timer_freq: 3579545
machdep.acpi_root: 1040432
dev.acpi.0.%desc: IBM Cnote2
dev.acpi.0.%driver: acpi
dev.acpi.0.%parent: nexus0
dev.pci_link.0.%parent: acpi0
dev.pci_link.1.%parent: acpi0
dev.pci_link.2.%parent: acpi0
dev.pci_link.3.%parent: acpi0
dev.pci_link.4.%parent: acpi0
dev.pci_link.5.%parent: acpi0
dev.pci_link.6.%parent: acpi0
dev.pci_link.7.%parent: acpi0
dev.acpi_ec.0.%desc: Embedded Controller: GPE 0x1d
dev.acpi_ec.0.%driver: acpi_ec
dev.acpi_ec.0.%location: handle=\_SB_.PCI0.ICH3.EC0_
dev.acpi_ec.0.%pnpinfo: _HID=PNP0C09 _UID=0
dev.acpi_ec.0.%parent: acpi0
dev.acpi_sysresource.0.%desc: System Resource
dev.acpi_sysresource.0.%driver: acpi_sysresource
dev.acpi_sysresource.0.%location: handle=\_SB_.MBRS
dev.acpi_sysresource.0.%pnpinfo: _HID=PNP0C02 _UID=2
dev.acpi_sysresource.0.%parent: acpi0
dev.acpi_timer.0.%desc: 24-bit timer at 3.579545MHz
dev.acpi_timer.0.%driver: acpi_timer
dev.acpi_timer.0.%location: unknown
dev.acpi_timer.0.%pnpinfo: unknown
dev.acpi_timer.0.%parent: acpi0
dev.cpu.0.%parent: acpi0
dev.acpi_perf.0.%desc: ACPI CPU Frequency Control
dev.acpi_perf.0.%driver: acpi_perf
dev.acpi_perf.0.%parent: cpu0
dev.acpi_perf.0.freq_settings: 1000/20000 733/10000
dev.acpi_button.0.%desc: Sleep Button
dev.acpi_button.0.%driver: acpi_button
dev.acpi_button.0.%location: handle=\_SB_.SLPB
dev.acpi_button.0.%pnpinfo: _HID=PNP0C0E _UID=0
dev.acpi_button.0.%parent: acpi0
dev.acpi_button.0.wake: 1
dev.pcib.0.%parent: acpi0
dev.acpi_lid.0.%desc: Control Method Lid Switch
dev.acpi_lid.0.%driver: acpi_lid
dev.acpi_lid.0.%location: handle=\_SB_.LID_
dev.acpi_lid.0.%pnpinfo: _HID=PNP0C0D _UID=0
dev.acpi_lid.0.%parent: acpi0
dev.acpi_lid.0.wake: 1
dev.acpi_acad.0.%desc: AC Adapter
dev.acpi_acad.0.%driver: acpi_acad
dev.acpi_acad.0.%location: handle=\_SB_.AC__
dev.acpi_acad.0.%pnpinfo: _HID=ACPI0003 _UID=0
dev.acpi_acad.0.%parent: acpi0
dev.battery.0.%parent: acpi0
dev.acpi_tz.0.%desc: Thermal Zone
dev.acpi_tz.0.%driver: acpi_tz
dev.acpi_tz.0.%location: handle=\_TZ_.THR1
dev.acpi_tz.0.%pnpinfo: _HID=none _UID=0
dev.acpi_tz.0.%parent: acpi0
dev.acpi_tz.1.%desc: Thermal Zone
dev.acpi_tz.1.%driver: acpi_tz
dev.acpi_tz.1.%location: handle=\_TZ_.THR2
dev.acpi_tz.1.%pnpinfo: _HID=none _UID=0
dev.acpi_tz.1.%parent: acpi0
dev.atpic.0.%parent: acpi0
dev.atdma.0.%parent: acpi0
dev.attimer.0.%parent: acpi0
dev.attimer.1.%parent: acpi0
dev.npxisa.0.%parent: acpi0
dev.atkbdc.0.%parent: acpi0
dev.fdc.0.%parent: acpi0
dev.sio.0.%parent: acpi0
dev.psmcpnp.0.%parent: acpi0
pcbsd-1084#





pcbsd-1084# sysctl -a | grep acpi_ibm
dev.acpi_ibm.0.%desc: IBM ThinkPad ACPI Extras
dev.acpi_ibm.0.%driver: acpi_ibm
dev.acpi_ibm.0.%location: handle=\_SB_.PCI0.ICH3.HKEY
dev.acpi_ibm.0.%pnpinfo: _HID=IBM0068 _UID=0
dev.acpi_ibm.0.%parent: acpi0
dev.acpi_ibm.0.events: 0
dev.acpi_ibm.0.hotkey: 2136
dev.acpi_ibm.0.lcd_brightness: 0
dev.acpi_ibm.0.volume: 0
dev.acpi_ibm.0.mute: 0
dev.acpi_ibm.0.fan_speed: 0
dev.acpi_ibm.0.fan: 0
pcbsd-1084#

Florian
07-02-2007, 05:31 PM
Hello Ben,

or acpi_ibm does the trick... ;). And thank you very much for sharing your output! Very helpful for someone who develops the ACPI/APM application of PC-BSD ;)

nimoi
07-04-2007, 08:07 PM
Hi Florian,

great, I could help you with the output, although, I could not reproduce the error. I even tried to reproduce the error with all 1.3 minor version upgrades up to 1.3.4, but all were shutting down well. So I really don't know, what has happend, as I had this on three different Thinkpads. Strange, isn't it - but I get used to things like that ;-).


Best,
Ben