FreeBSD ACPI auf Thinkpad X230

kashee Opeiah

FreeBSD rockz
Hallo zusammen,
ich habe ein Problem mit meinem FreeBSD, oder genauer gesagt mit Plasma auf meinem X230.

Das Problem ist, sobald ich die FN-Taste, z.B. um die Helligkeit zu ändern, drücke geht das System in den Standby.

Ich habe schon sehr viel versucht, unter anderem in den Energieeinstellungen die Tasten Events zu deaktivieren.


An welcher Stelle muss ich ansetzten, bei Plasma? Ein Drücken den FN-Keys in der Konsole sorgt für keinen Standby.

xev sag bei Drücken des FN-Keys

Bash:
Outer window is 0x3e00001, inner window is 0x3e00002

PropertyNotify event, serial 8, synthetic NO, window 0x3e00001,
    atom 0x27 (WM_NAME), time 944183, state PropertyNewValue

PropertyNotify event, serial 9, synthetic NO, window 0x3e00001,
    atom 0x22 (WM_COMMAND), time 944183, state PropertyNewValue

PropertyNotify event, serial 10, synthetic NO, window 0x3e00001,
    atom 0x28 (WM_NORMAL_HINTS), time 944183, state PropertyNewValue

CreateNotify event, serial 11, synthetic NO, window 0x3e00001,
    parent 0x3e00001, window 0x3e00002, (10,10), width 50, height 50
border_width 4, override NO

PropertyNotify event, serial 14, synthetic NO, window 0x3e00001,
    atom 0x103 (WM_PROTOCOLS), time 944184, state PropertyNewValue

MapNotify event, serial 15, synthetic NO, window 0x3e00001,
    event 0x3e00001, window 0x3e00002, override NO

PropertyNotify event, serial 18, synthetic NO, window 0x3e00001,
    atom 0x1c4 (_KDE_NET_WM_USER_CREATION_TIME), time 944185, state PropertyNewValue

ConfigureNotify event, serial 23, synthetic NO, window 0x3e00001,
    event 0x3e00001, window 0x3e00001, (0,0), width 178, height 178,
    border_width 0, above 0x320008b, override NO

ReparentNotify event, serial 23, synthetic NO, window 0x3e00001,
    event 0x3e00001, window 0x3e00001, parent 0x2008c6f,
    (0,0), override NO

PropertyNotify event, serial 29, synthetic NO, window 0x3e00001,
    atom 0x12f (_NET_WM_STATE), time 944189, state PropertyNewValue

MapNotify event, serial 29, synthetic NO, window 0x3e00001,
    event 0x3e00001, window 0x3e00001, override NO

VisibilityNotify event, serial 29, synthetic NO, window 0x3e00001,
    state VisibilityPartiallyObscured

Expose event, serial 29, synthetic NO, window 0x3e00001,
    (0,0), width 1, height 1, count 0

PropertyNotify event, serial 29, synthetic NO, window 0x3e00001,
    atom 0x10c (WM_STATE), time 944189, state PropertyNewValue

PropertyNotify event, serial 30, synthetic NO, window 0x3e00001,
    atom 0x1bc (_KDE_NET_WM_ACTIVITIES), time 944189, state PropertyNewValue

PropertyNotify event, serial 32, synthetic NO, window 0x3e00001,
    atom 0x12f (_NET_WM_STATE), time 944267, state PropertyNewValue

PropertyNotify event, serial 32, synthetic NO, window 0x3e00001,
    atom 0x19d (_NET_WM_DESKTOP), time 944267, state PropertyNewValue

PropertyNotify event, serial 32, synthetic NO, window 0x3e00001,
    atom 0x12f (_NET_WM_STATE), time 944267, state PropertyNewValue

PropertyNotify event, serial 32, synthetic NO, window 0x3e00001,
    atom 0x19d (_NET_WM_DESKTOP), time 944267, state PropertyNewValue

PropertyNotify event, serial 33, synthetic NO, window 0x3e00001,
    atom 0x14c (_NET_FRAME_EXTENTS), time 944273, state PropertyNewValue

PropertyNotify event, serial 33, synthetic NO, window 0x3e00001,
    atom 0x14b (_KDE_NET_WM_FRAME_STRUT), time 944273, state PropertyNewValue

PropertyNotify event, serial 33, synthetic NO, window 0x3e00001,
    atom 0x1a3 (_NET_WM_ALLOWED_ACTIONS), time 944273, state PropertyNewValue

PropertyNotify event, serial 34, synthetic NO, window 0x3e00001,
    atom 0x12f (_NET_WM_STATE), time 944274, state PropertyNewValue

FocusIn event, serial 34, synthetic NO, window 0x3e00001,
    mode NotifyNormal, detail NotifyNonlinear

KeymapNotify event, serial 34, synthetic NO, window 0x0,
    keys:  1   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   

VisibilityNotify event, serial 34, synthetic NO, window 0x3e00001,
    state VisibilityUnobscured

Expose event, serial 34, synthetic NO, window 0x3e00001,
    (1,0), width 177, height 1, count 4

Expose event, serial 34, synthetic NO, window 0x3e00001,
    (0,1), width 178, height 9, count 3

Expose event, serial 34, synthetic NO, window 0x3e00001,
    (0,10), width 10, height 58, count 2

Expose event, serial 34, synthetic NO, window 0x3e00001,
    (68,10), width 110, height 58, count 1

Expose event, serial 34, synthetic NO, window 0x3e00001,
    (0,68), width 178, height 110, count 0

ConfigureNotify event, serial 34, synthetic YES, window 0x3e00001,
    event 0x3e00001, window 0x3e00001, (0,31), width 178, height 178,
    border_width 0, above 0x0, override NO

PropertyNotify event, serial 34, synthetic NO, window 0x3e00001,
    atom 0x1bc (_KDE_NET_WM_ACTIVITIES), time 944276, state PropertyNewValue

PropertyNotify event, serial 34, synthetic NO, window 0x3e00001,
    atom 0x12f (_NET_WM_STATE), time 944276, state PropertyNewValue

ColormapNotify event, serial 36, synthetic NO, window 0x3e00001,
    colormap 0x20, new NO, state ColormapInstalled

PropertyNotify event, serial 36, synthetic NO, window 0x3e00001,
    atom 0x1a0 (_NET_WM_ICON_GEOMETRY), time 944578, state PropertyNewValue

FocusOut event, serial 37, synthetic NO, window 0x3e00001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 37, synthetic NO, window 0x3e00001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 37, synthetic NO, window 0x0,
    keys:  4294967228 0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   64  0   0   0   0   0   0   0   0   0   0   0   0   0   

KeyRelease event, serial 37, synthetic NO, window 0x3e00001,
    root 0xf2, subw 0x0, time 945579, (736,469), root:(736,500),
    state 0x0, keycode 150 (keysym 0x1008ff2f, XF86Sleep), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

Kann mir einer weiterhelfen?

Also Module sind geladen (boot/loader.conf)

hw.psm.synaptics_support="1"
kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
aesni_load="YES"
i915kms_load="YES"
fuse_load="YES"
coretemp_load="YES"
#mpfs_load="YES"
#io_load="YES"
#ACPI IBM
acpi_ibm_load="YES"
#acpi_video_load="YES"
drm.i915.enable_rc6=7
#kern.ipc.shmseq=1024
#kern.ipc.shmmni=1024
#kern.maxproc=10000
hint.p4tcc.0.disabled=1
hint.acpi_throttle.0.disabled=1
hw.pci.do_power_nodriver=3
hint.snd.latency=7
legal.intel_iwn.license_ack=1

if_iwn_load="YES"
wlan_wep_load="YES"
wlan_ccmp_load="YES"
wlan_tkip_load="YES"


Darüber hinaus führt das Modul acpi_video_load zu Problemen...

Danke
KO
 
Ist das nicht eine Hardware-Geschichte, die Tastaturevents werden durchgereicht, die kann man auf Userland-Ebene gar nicht abfangen?
 
Die Ursache ist, dass alle neueren Thinkpads (mindestens ab Westmere-Generation, eventuell noch früher) auf der FN-Taste ein XF86Sleep Event senden. Das ist an sich erstmal gar nicht schlimm und lässt sich auch nicht ohne größere Gefrickel verhindern. Zum Problem wird es erst, wenn irgendwer meint darauf reagieren zu müssen und das System stumpf in den Suspend schickt. Man(tm) müsste also herausfinden, wieso Plasma darauf reagiert und es verhindern.
 
Würde es mal mit x11/xmodmap probieren. KDE5 liest, wenn ich mich richtig erinnere sogar die Konfiguration ~/.Xmodmap automatisch beim starten einer Sitzung ein.

Code:
$cd $HOME
$echo "keycode 150 = NoSymbol" > .Xmodmap
$xmodmap .Xmodmap
$xev
 
Würde es mal mit x11/xmodmap probieren. KDE5 liest, wenn ich mich richtig erinnere sogar die Konfiguration ~/.Xmodmap automatisch beim starten einer Sitzung ein.

Code:
$cd $HOME
$echo "keycode 150 = NoSymbol" > .Xmodmap
$xmodmap .Xmodmap
$xev

Das hat mir sehr weitergeholfen!
Jetzt fährt das X230 nicht mehr in den Suspend.

XEV zeigt jetzt auch:

Code:
KeyRelease event, serial 37, synthetic NO, window 0x3e00001,
    root 0xf2, subw 0x0, time 723115, (874,364), root:(874,395),
    state 0x0, keycode 150 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

Vielen vielen Dank für die schnelle Hilfe.
 
Zurück
Oben