Date: Thu, 8 Jun 2017 04:02:40 +1000 (EST) From: Ian Smith <smithi@nimnet.asn.au> To: ASV <asv@inhio.net> Cc: freebsd-questions@freebsd.org, Polytropon <freebsd@edvax.de> Subject: Re: FreeBSD 11.0 freezes when closing lids Message-ID: <20170608012133.O98304@sola.nimnet.asn.au> In-Reply-To: <mailman.83.1496836801.15802.freebsd-questions@freebsd.org> References: <mailman.83.1496836801.15802.freebsd-questions@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In freebsd-questions Digest, Vol 679, Issue 3, Message: 4 On Tue, 06 Jun 2017 14:52:13 -0300 ASV <asv@inhio.net> wrote: > I'm re-sending this message again, maybe I'll be luckier this time. :) Maybe :) > Hi everyone, > I've been using FreeBSD on my Thinkpad T430 for about 3 years upgrading > from release to release encountering minor issues from time to time. > Since I've upgraded to FreeBSD 11 the OS freezes every time I: > - close the lid > - use any function buttons > > Cannot be recovered in any way, doesn't respond to anything and, > obviously I cannot access to the terminal (no vty access). I couldn't > check if I can actually login via ssh from another box as I cannot do > this test at the moment nonetheless I doubt that would be possible. If by 'freezes' you mean the screen is still on but the keyboard is not responding, perhaps you could ssh in, i.e. maybe only X is frozen, or only the keyboard has gone missing? In any case .. Does (e.g.) Fn-PgUp toggle thinklight? Fn-Home|End the brightness? Such keys usually bypass any console and are caught by BIOS, maybe via ACPI. I suggest you should try booting up without running X / xfce, either to single user mode, or comment out starting of X and xfce in /etc/rc.conf and if explicitly enabled there, also disable dbus, polkit and/or hald so it boots straight into terminal mode with none of that, for now. I have a Thinkpad X200 running 9.3 (an an older X, KDE etc) but I think your T430 should be similar in its BIOS setup regarding special function keys (like Fn-F4 to suspend, Fn-PgUp thinklight, etc). So from a VT you can see if Fn-F4 (or acpiconf -s3 as root) properly suspends the laptop, and just pressing the Fn key brings it back. First, that needs to work. 'sysctl hw.acpi | grep _state' should show something like: hw.acpi.suspend_state: S3 hw.acpi.standby_state: NONE hw.acpi.lid_switch_state: NONE hw.acpi.sleep_button_state: S3 hw.acpi.power_button_state: S5 hw.acpi.supported_sleep_state: S3 S4 S5 If not already set that way - likely in /etc/sysctl.conf - setting # sysctl hw.acpi.lid_switch_state=S3 should have closing the lid also suspend just as Fn-F4 does, and presumably opening it should resume (I don't use lid suspend here). And if that works, best just disable xfce's whole power setup that uses UPower, dbus, polkit, maybe even the dreaded hald. To power down I just run # shutdown -p +1 some comment .. then exit KDE/X before shutdown. If suspend itself is NOT working, we'll have eliminated xfce setup as the problem at least. In such case, booting with verbose logging then attempting to suspend should provide good clues in /var/log/messages. Whether this may help with the freeze on F-key issue I've no idea. I'm assuming you upgraded ALL your ports / packages since upgrading to 11.x? I've not used xfce, but there are experts in use and setup here .. maybe they could help if keyboard mapping remains an issue (you there poly? :) > My current version is 11.0-RELEASE-p9. > The only log I can see after restarting is pasted below (in case of > closing lid). I'm wondering if anybody is experiencing the same. > It is very frustrating. > > Tnx. Spacing the log below so it's clear what a mess that stuff is :) It tried using the CanSuspend method twice, the CanHibernate method twice - FreeBSD doesn't support S4 state on most laptops - then both methods once more, before presumably giving up .. then doing .. what? Note I'm only guessing at "UPower's" problem from its messsages here. I tried enabling KDE's similar power management once, with poor results - however Lenovo's native ACPI stuff works fine for me, and for others. cheers, Ian (please cc me, I take the daily -digest) > May 30 20:50:51 localhost dbus[1114]: [system] Activating service > name='org.freedesktop.UPower' (using servicehelper) > May 30 20:50:51 localhost dbus[1114]: [system] Successfully activated > service 'org.freedesktop.UPower' > May 30 20:50:51 localhost dbus[1114]: [system] Rejected send message, 2 > matched rules; type="method_call", sender=":1.11" (uid=1001 pid=2449 > comm="/usr/local/bin/xfce4-session ") > interface="org.freedesktop.ConsoleKit.Manager"member="CanSuspend" error > name="(unset)" requested_reply="0"destination=":1.1" (uid=0 pid=1231 > comm="/usr/local/sbin/console-kit-daemon --no-daemon ") > May 30 20:50:51 localhost dbus[1114]: [system] Rejected send message, 2 > matched rules; type="method_call",sender=":1.13" (uid=1001 pid=2482 > comm="xfce4-power-manager --restart --sm-client-id > 2d98a")interface="org.freedesktop.ConsoleKit.Manager" > member="CanSuspend" error name="(unset)" requested_reply="0" > destination=":1.1" (uid=0 pid=1231 comm="/usr/local/sbin/console-kit- > daemon --no-daemon ") > May 30 20:50:51 localhost dbus[1114]: [system] Rejected send message, 2 > matched rules; type="method_call",sender=":1.13" (uid=1001 pid=2482 > comm="xfce4-power-manager --restart --sm-client-id > 2d98a")interface="org.freedesktop.ConsoleKit.Manager" > member="CanHibernate" error name="(unset)" > requested_reply="0"destination=":1.1" (uid=0 pid=1231 > comm="/usr/local/sbin/console-kit-daemon --no-daemon ") > May 30 20:50:51 localhost dbus[1114]: [system] Rejected send message, 2 > matched rules; type="method_call",sender=":1.11" (uid=1001 pid=2449 > comm="/usr/local/bin/xfce4-session > ")interface="org.freedesktop.ConsoleKit.Manager" member="CanHibernate" > error name="(unset)" requested_reply="0"destination=":1.1" (uid=0 > pid=1231 comm="/usr/local/sbin/console-kit-daemon --no-daemon ") > May 30 20:50:52 localhost dbus[1114]: [system] Rejected send message, 2 > matched rules; type="method_call",sender=":1.11" (uid=1001 pid=2449 > comm="/usr/local/bin/xfce4-session > ")interface="org.freedesktop.ConsoleKit.Manager" member="CanSuspend" > error name="(unset)" requested_reply="0"destination=":1.1" (uid=0 > pid=1231 comm="/usr/local/sbin/console-kit-daemon --no-daemon ") > May 30 20:50:52 localhost dbus[1114]: [system] Rejected send message, 2 > matched rules; type="method_call",sender=":1.11" (uid=1001 pid=2449 > comm="/usr/local/bin/xfce4-session > ")interface="org.freedesktop.ConsoleKit.Manager" member="CanHibernate" > error name="(unset)" requested_reply="0"destination=":1.1" (uid=0 > pid=1231 comm="/usr/local/sbin/console-kit-daemon --no-daemon ")
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170608012133.O98304>