Repository 32bit  Forum
Repository 64bit  Wiki

Abilitazione tasti funzione

Scrivete su questo forum se avete problemi o volete dare buoni consigli sui computer portatili (Laptop).

Moderatore: Staff

Regole del forum
1) Citare sempre la versione di Slackware usata, la versione del Kernel e magari anche la versione della libreria coinvolta. Questi dati aiutano le persone che possono rispondere.
2) Citare il modello preciso del laptop in questione.
3) Leggere attentamente le risposte ricevute
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.

La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.

Abilitazione tasti funzione

Messaggioda prometeo79 » mer ott 19, 2005 10:21

Ciao a tutti
Vorrei abilitare i tasti funzione sul mio note, ma non sò da quali presupposti partire, mi potreste dare qualche indicazione?
Avatar utente
prometeo79
Linux 3.x
Linux 3.x
 
Messaggi: 1278
Iscritto il: gio mar 17, 2005 0:00
Località: Torino
Slackware: 12

Messaggioda l1q1d » mer ott 19, 2005 11:19

intanto che modello è?
apri un terminale e scrivi xev:
1) se ritorna qualcosa basta che introduci nel tuo .Xmodmap quei codici associati al loro nome
2) se non ritorna nulla devi trovare un driver che li carichi tipo per cli acer c'è l'acerck
Avatar utente
l1q1d
Master
Master
 
Messaggi: 1862
Iscritto il: lun feb 21, 2005 0:00
Località: In uno spazio n-dimesionale

Messaggioda Bart » mer ott 19, 2005 11:43

Io con un sony vaio ho dovuto installare dei driver particolari, ma senza sapere il modello è fatica aiutarti.
Bart
Staff
Staff
 
Messaggi: 4248
Iscritto il: dom ago 08, 2004 23:00
Località: Rimini

Messaggioda prometeo79 » mer ott 19, 2005 12:36

Scusate, ho dimenticato di mettere il modello
Asus 6750klh

ho dato xev e mi ritornana questo

Codice: Seleziona tutto
Outer window is 0x2200001, inner window is 0x2200002

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

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

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

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

MapNotify event, serial 12, synthetic NO, window 0x2200001,
    event 0x2200001, window 0x2200002, override NO

PropertyNotify event, serial 15, synthetic NO, window 0x2200001,
    atom 0x16c (_KDE_NET_WM_USER_CREATION_TIME), time 5906123, state PropertyNew
Value

ConfigureNotify event, serial 15, synthetic NO, window 0x2200001,
    event 0x2200001, window 0x2200001, (0,0), width 178, height 178,
    border_width 0, above 0x1401586, override NO

ReparentNotify event, serial 15, synthetic NO, window 0x2200001,
    event 0x2200001, window 0x2200001, parent 0x1006f91,
    (0,0), override NO

PropertyNotify event, serial 15, synthetic NO, window 0x2200001,
    atom 0x13d (_NET_WM_DESKTOP), time 5906129, state PropertyNewValue

PropertyNotify event, serial 15, synthetic NO, window 0x2200001,
    atom 0xf7 (_KDE_NET_WM_FRAME_STRUT), time 5906144, state PropertyNewValue

PropertyNotify event, serial 15, synthetic NO, window 0x2200001,
    atom 0x143 (_NET_WM_ALLOWED_ACTIONS), time 5906144, state PropertyNewValue

PropertyNotify event, serial 15, synthetic NO, window 0x2200001,
    atom 0x6a (WM_STATE), time 5906144, state PropertyNewValue

ConfigureNotify event, serial 15, synthetic YES, window 0x2200001,
    event 0x2200001, window 0x2200001, (838,31), width 178, height 178,
    border_width 0, above 0x0, override NO

MapNotify event, serial 15, synthetic NO, window 0x2200001,
    event 0x2200001, window 0x2200001, override NO

VisibilityNotify event, serial 15, synthetic NO, window 0x2200001,
    state VisibilityFullyObscured

FocusIn event, serial 15, synthetic NO, window 0x2200001,
    mode NotifyNormal, detail NotifyNonlinear

KeymapNotify event, serial 15, synthetic NO, window 0x0,
    keys:  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   0

VisibilityNotify event, serial 15, synthetic NO, window 0x2200001,
    state VisibilityUnobscured

Expose event, serial 15, synthetic NO, window 0x2200001,
    (0,0), width 178, height 10, count 3

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

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

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

PropertyNotify event, serial 15, synthetic NO, window 0x2200001,
    atom 0xee (_NET_WM_STATE), time 5906153, state PropertyNewValue

PropertyNotify event, serial 26, synthetic NO, window 0x2200001,
    atom 0x140 (_NET_WM_ICON_GEOMETRY), time 5906260, state PropertyNewValue

PropertyNotify event, serial 27, synthetic NO, window 0x2200001,
    atom 0x140 (_NET_WM_ICON_GEOMETRY), time 5906266, state PropertyNewValue

FocusOut event, serial 27, synthetic NO, window 0x2200001,
    mode NotifyNormal, detail NotifyNonlinear

PropertyNotify event, serial 27, synthetic NO, window 0x2200001,
    atom 0x140 (_NET_WM_ICON_GEOMETRY), time 5909889, state PropertyNewValue

VisibilityNotify event, serial 27, synthetic NO, window 0x2200001,
    state VisibilityPartiallyObscured

VisibilityNotify event, serial 27, synthetic NO, window 0x2200001,
    state VisibilityUnobscured

Expose event, serial 27, synthetic NO, window 0x2200001,
    (0,4), width 61, height 6, count 1

Expose event, serial 27, synthetic NO, window 0x2200001,
    (0,10), width 10, height 19, count 0

PropertyNotify event, serial 27, synthetic NO, window 0x2200001,
    atom 0x140 (_NET_WM_ICON_GEOMETRY), time 5914599, state PropertyNewValue

EnterNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915708, (104,170), root:(942,201),
    mode NotifyNormal, detail NotifyNonlinear, same_screen YES,
    focus NO, state 0

KeymapNotify event, serial 27, synthetic NO, window 0x0,
    keys:  4294967273 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

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915716, (110,160), root:(948,191),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915724, (112,150), root:(950,181),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915732, (116,142), root:(954,173),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915740, (118,134), root:(956,165),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915748, (122,128), root:(960,159),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915756, (122,125), root:(960,156),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915764, (122,123), root:(960,154),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915772, (122,121), root:(960,152),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915780, (122,118), root:(960,149),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915788, (122,116), root:(960,147),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915796, (122,114), root:(960,145),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915804, (121,113), root:(959,144),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915812, (121,112), root:(959,143),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915820, (120,111), root:(958,142),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915828, (120,110), root:(958,141),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915844, (120,109), root:(958,140),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915860, (120,108), root:(958,139),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915868, (120,107), root:(958,138),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915876, (120,106), root:(958,137),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915884, (120,104), root:(958,135),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915892, (121,103), root:(959,134),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915900, (122,101), root:(960,132),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915908, (122,99), root:(960,130),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915916, (124,93), root:(962,124),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915924, (128,89), root:(966,120),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915932, (128,87), root:(966,118),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915940, (132,81), root:(970,112),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915948, (132,78), root:(970,109),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915956, (133,76), root:(971,107),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915964, (135,70), root:(973,101),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915972, (136,69), root:(974,100),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915980, (137,67), root:(975,98),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915988, (137,64), root:(975,95),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5915996, (138,62), root:(976,93),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916004, (138,59), root:(976,90),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916012, (140,53), root:(978,84),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916020, (140,45), root:(978,76),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916028, (138,39), root:(976,70),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916036, (138,31), root:(976,62),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916044, (136,25), root:(974,56),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916052, (134,17), root:(972,48),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916060, (134,15), root:(972,46),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916068, (134,13), root:(972,44),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916076, (134,11), root:(972,42),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916084, (134,10), root:(972,41),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916092, (134,9), root:(972,40),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916396, (136,9), root:(974,40),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916404, (137,8), root:(975,39),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916412, (138,8), root:(976,39),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916420, (139,8), root:(977,39),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916428, (140,8), root:(978,39),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916436, (140,7), root:(978,38),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916444, (141,6), root:(979,37),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916452, (142,6), root:(980,37),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916460, (143,6), root:(981,37),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916468, (143,5), root:(981,36),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916476, (144,5), root:(982,36),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916484, (145,5), root:(983,36),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916492, (146,4), root:(984,35),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916548, (145,6), root:(983,37),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916556, (141,10), root:(979,41),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916564, (137,16), root:(975,47),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916572, (135,26), root:(973,57),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916580, (129,40), root:(967,71),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916588, (123,54), root:(961,85),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916596, (119,72), root:(957,103),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916604, (113,90), root:(951,121),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916612, (107,108), root:(945,139),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916620, (99,126), root:(937,157),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916628, (91,148), root:(929,179),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916636, (81,166), root:(919,197),
    state 0x0, is_hint 0, same_screen YES

LeaveNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5916644, (71,184), root:(909,215),
    mode NotifyNormal, detail NotifyNonlinear, same_screen YES,
    focus NO, state 0

EnterNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917060, (90,171), root:(928,202),
    mode NotifyNormal, detail NotifyNonlinear, same_screen YES,
    focus NO, state 0

KeymapNotify event, serial 27, synthetic NO, window 0x0,
    keys:  4294967273 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

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917068, (88,159), root:(926,190),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917076, (84,149), root:(922,180),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917084, (82,141), root:(920,172),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917092, (78,137), root:(916,168),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917100, (77,135), root:(915,166),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917108, (76,134), root:(914,165),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917116, (75,133), root:(913,164),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917124, (74,132), root:(912,163),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917164, (73,132), root:(911,163),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917172, (72,132), root:(910,163),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917180, (71,132), root:(909,163),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917204, (70,132), root:(908,163),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917220, (69,132), root:(907,163),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917228, (68,132), root:(906,163),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917236, (67,132), root:(905,163),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917244, (65,131), root:(903,162),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917252, (57,125), root:(895,156),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917260, (51,123), root:(889,154),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917268, (43,117), root:(881,148),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917276, (37,113), root:(875,144),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917284, (33,107), root:(871,138),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917292, (29,101), root:(867,132),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917300, (25,95), root:(863,126),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917308, (25,92), root:(863,123),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917316, (23,86), root:(861,117),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917324, (23,83), root:(861,114),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917332, (23,80), root:(861,111),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917340, (23,72), root:(861,103),
    state 0x0, is_hint 0, same_screen YES

LeaveNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917348, (25,64), root:(863,95),
    mode NotifyNormal, detail NotifyInferior, same_screen YES,
    focus NO, state 0

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x2200002, time 5917356, (27,58), root:(865,89),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x2200002, time 5917364, (29,50), root:(867,81),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x2200002, time 5917372, (33,44), root:(871,75),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x2200002, time 5917380, (35,36), root:(873,67),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x2200002, time 5917388, (37,30), root:(875,61),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x2200002, time 5917396, (39,24), root:(877,55),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x2200002, time 5917404, (40,22), root:(878,53),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x2200002, time 5917412, (40,21), root:(878,52),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x2200002, time 5917420, (40,19), root:(878,50),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x2200002, time 5917428, (40,18), root:(878,49),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x2200002, time 5917492, (40,20), root:(878,51),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x2200002, time 5917500, (40,21), root:(878,52),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x2200002, time 5917508, (41,23), root:(879,54),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x2200002, time 5917516, (42,25), root:(880,56),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x2200002, time 5917524, (43,27), root:(881,58),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x2200002, time 5917532, (44,29), root:(882,60),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x2200002, time 5917540, (45,31), root:(883,62),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x2200002, time 5917548, (46,32), root:(884,63),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x2200002, time 5917564, (47,33), root:(885,64),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x2200002, time 5917676, (47,34), root:(885,65),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x2200002, time 5917684, (47,35), root:(885,66),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x2200002, time 5917700, (46,37), root:(884,68),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x2200002, time 5917708, (45,37), root:(883,68),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x2200002, time 5917716, (44,39), root:(882,70),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x2200002, time 5917724, (43,41), root:(881,72),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x2200002, time 5917732, (39,47), root:(877,78),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x2200002, time 5917740, (37,55), root:(875,86),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x2200002, time 5917748, (33,63), root:(871,94),
    state 0x0, is_hint 0, same_screen YES

EnterNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917756, (31,73), root:(869,104),
    mode NotifyNormal, detail NotifyInferior, same_screen YES,
    focus NO, state 0

KeymapNotify event, serial 27, synthetic NO, window 0x0,
    keys:  4294967273 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

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917764, (27,85), root:(865,116),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917772, (19,95), root:(857,126),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917780, (17,111), root:(855,142),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917788, (15,129), root:(853,160),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917796, (9,145), root:(847,176),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917804, (7,167), root:(845,198),
    state 0x0, is_hint 0, same_screen YES

LeaveNotify event, serial 27, synthetic NO, window 0x2200001,
    root 0xe9, subw 0x0, time 5917812, (3,189), root:(841,220),
    mode NotifyNormal, detail NotifyNonlinear, same_screen YES,
    focus NO, state 0

VisibilityNotify event, serial 27, synthetic NO, window 0x2200001,
    state VisibilityFullyObscured

PropertyNotify event, serial 27, synthetic NO, window 0x2200001,
    atom 0x140 (_NET_WM_ICON_GEOMETRY), time 5920069, state PropertyNewValue

PropertyNotify event, serial 27, synthetic NO, window 0x2200001,
    atom 0x140 (_NET_WM_ICON_GEOMETRY), time 6027887, state PropertyNewValue


Adesso che ne devo fare?
Avatar utente
prometeo79
Linux 3.x
Linux 3.x
 
Messaggi: 1278
Iscritto il: gio mar 17, 2005 0:00
Località: Torino
Slackware: 12

Messaggioda l1q1d » mer ott 19, 2005 12:54

xev lo usi così:
apri xev e poi premi i tasti, se ritorna il codice del tasto allora ok
Avatar utente
l1q1d
Master
Master
 
Messaggi: 1862
Iscritto il: lun feb 21, 2005 0:00
Località: In uno spazio n-dimesionale

Messaggioda prometeo79 » mer ott 19, 2005 13:46

:P ok capito.

Il risultato è che qualcuno risponde, qualcuno no. In particolare quelli relativi alla luminosità e allo spegnimento del monitor. Non funzionano invece quelli del volume. Che mi puoi dire?
Avatar utente
prometeo79
Linux 3.x
Linux 3.x
 
Messaggi: 1278
Iscritto il: gio mar 17, 2005 0:00
Località: Torino
Slackware: 12

Messaggioda prometeo79 » sab ott 29, 2005 13:20

Ciao
Sono riuscito ad abilitare la maggior parte degli hotkey. Mi rimangono solo quelli relatiti al broswer, posta ecc. Insomma quelli che lanciano i programmi, nel senso che comandi come questi

Codice: Seleziona tutto
# Mute button
00000032)
o=`aumix -q | egrep 'vol 0, ?0'`
if [ -z $o ]; then
   aumix -S
   aumix -v0
else
   aumix -L
fi   
;;
# Volume up button
00000030)
    /usr/bin/aumix -v +2
;;

rispondono senza problemi

Altri come questi
Codice: Seleziona tutto
# Browser button
00000051)
   /usr/bin/firefox
;;

no. Sto lavorando da root ed il tasto va alla grande, ma perchè non mi esegue firefox? O meglio come gli dico di eseguirlo?
Avatar utente
prometeo79
Linux 3.x
Linux 3.x
 
Messaggi: 1278
Iscritto il: gio mar 17, 2005 0:00
Località: Torino
Slackware: 12

Messaggioda Dengorius » lun ott 31, 2005 3:13

prova con
Codice: Seleziona tutto
# Browser button
00000051)
   exec /usr/bin/firefox
;;
Dengorius
Linux 1.0
Linux 1.0
 
Messaggi: 19
Iscritto il: dom set 25, 2005 15:32

Messaggioda prometeo79 » lun ott 31, 2005 17:32

Provato ma nada
Avatar utente
prometeo79
Linux 3.x
Linux 3.x
 
Messaggi: 1278
Iscritto il: gio mar 17, 2005 0:00
Località: Torino
Slackware: 12

asus a6va

Messaggioda lennynero » dom mag 28, 2006 17:18

salve aqnche io ho il problema degli hotkeys in particolare ho un asus a6va, il mio problema è che xev non rileva alcun evento quando premi i tasti speciali per cpuscaling, posta, browser, touchpad, power. Ho ricpompilato il kernel aggiungento alcune cose relative a acpi, non so se erano necessarie,(ho seguito in parte questo howto: http://leufke.info/linux/asus/, copiando in /etc/acpi tutti gli script necessari) solo che ora non solo non funzionano i tasti speciali, ma non funziona nemmeno power che prima spegneva il pc..., qualcuno mi illumina sul dafarsi, e magari su che driver usare? grazie in anticipo
Avatar utente
lennynero
Linux 2.6
Linux 2.6
 
Messaggi: 567
Iscritto il: dom mag 02, 2004 23:00
Località: Salerno
Slackware: 14.1-x64
Kernel: 3.10.17
Desktop: xfce-4.10

Messaggioda gnubit » lun mag 29, 2006 7:34

Se non ricordo male quei tasti sono dei tasti aggiuntivi controllati dallasus acpi (mi pare).

Io ho u asus, ma non li ho mai utilizzati.
Avatar utente
gnubit
Linux 2.6
Linux 2.6
 
Messaggi: 751
Iscritto il: dom apr 16, 2006 23:16
Località: Verona

Messaggioda lennynero » mar ott 31, 2006 12:55

raga io ho un asus a6va se volete vi passo l'handler per le funzioni dei tasti speciali solo che mi è rimasto un problema: il pulstante Fn+f2 non funziona(sarebbe l'attivazione della wireless...) qualcuno può aiutarmi a capire come mai non va e se c'è modo di farlo andare?
Avatar utente
lennynero
Linux 2.6
Linux 2.6
 
Messaggi: 567
Iscritto il: dom mag 02, 2004 23:00
Località: Salerno
Slackware: 14.1-x64
Kernel: 3.10.17
Desktop: xfce-4.10

Messaggioda prometeo79 » mar ott 31, 2006 13:33

lennynero ha scritto:raga io ho un asus a6va se volete vi passo l'handler per le funzioni dei tasti speciali solo che mi è rimasto un problema: il pulstante Fn+f2 non funziona(sarebbe l'attivazione della wireless...) qualcuno può aiutarmi a capire come mai non va e se c'è modo di farlo andare?


Ora non posso perchè non ce l'ho. Questa sera ti posto il mio e ti faccio vedere come impostare il wireless. Se mi fai vedere che hai fatto magari in due ne facciamo uno buono :D

EDIT:

Mi funziona anche la disattivazione del touchpad
Avatar utente
prometeo79
Linux 3.x
Linux 3.x
 
Messaggi: 1278
Iscritto il: gio mar 17, 2005 0:00
Località: Torino
Slackware: 12

Messaggioda lennynero » mar ott 31, 2006 17:36

io ho messo l'acpi nel kernel(compreso asus extras 0.30), poi in /etc/acpi/events/default ho inserito lo script:
Codice: Seleziona tutto
# This is the ACPID default configuration, it takes all
# events and passes them to /etc/acpi/default.sh for further
# processing.

# event keeps a regular expression matching the event. To get
# power events only, just use something like "event=button power.*"
# to catch it.
# action keeps the command to be executed after an event occurs
# In case of the power event above, your entry may look this way:
#event=button power.*
#action=/sbin/init 0

# Optionally you can specify the placeholder %e. It will pass
# through the whole kernel event message to the program you've
# specified.

event=.*
action=/etc/acpi/acpi_handler-a6va.sh %e

tale handler cattura un evento e lo manda in pasto allo script acpi_handler-a6va.sh:
Codice: Seleziona tutto
#!/bin/bash
#
# /etc/acpi/action.sh (2004.01.17)
# called by acpid for all events
# Christopher Knoerle <cknoerle@gmx.net>
# edited by l1q1d <l1q1d@yahoo.it>
# /etc/acpi/acpi_handler.sh

# Questo script è stato creato per un Notebook Asus a6va

# Programmi e variabili che si useranno in seguito
LOGGER="/usr/bin/logger -t ACPID" # logs to syslog - an echo logs to /var/log/acpid
XGAMMA="/usr/X11R6/bin/xgamma"
XSET="/usr/X11R6/bin/xset"
HDPARM="/sbin/hdparm"
# È necessario mettere l'indirizzo giusto della batteria, dell'alimentatore e  del coperchio
BAT_STATE="/proc/acpi/battery/BAT0/state"
BAT_INFO="/proc/acpi/battery/BAT0/info"
AC_STATE="/proc/acpi/ac_adapter/AC/state"
LID_STATE="/proc/acpi/button/lid/LID/state"


# Se lo script non sa come gestire questo evento
# scrive nel /var/log/acpid
# può essere utile per trovare 'grep #### /var/log/acpid'
# in alternativa si può sostituire echo con $LOGGER in modo da vederlo in /var/log/messages
no_action (){
   echo "#### NO ACTION FOR EVENT: " $*
   exit 1
}

# Pressione del bottone Sleep
sleep_btn (){
   $LOGGER "Start Sleeping"
   # Questo è un piccolo script creato da me che manda in sistema in sospensione
   /sbin/suspend.sh
}

# AC Adapter plugged in
acad_in (){
   $LOGGER "AC Adapter plugged IN"

   if ps -A | grep -q X
   then
      $XGAMMA -d 0:0 -gamma 1.0 # set gamma in X to 100%
      $XSET -d 0:0 dpms 0 0 600 # shutdown display after 600s
   fi
   $HDPARM -S 240 /dev/hda > /dev/null 2>&1 # spindown after 20min
   $HDPARM -B 255 /dev/hda > /dev/null 2>&1 # disable drive's APM
}

# AC Adapter plugged out
acad_out (){
   $LOGGER "AC Adapter plugged OUT"

   if ps -A | grep -q X
   then
      $XGAMMA -d 0:0 -gamma 0.7 # set gamma in X to 70%
      $XSET -d 0:0 dpms 0 0 120 # shutdown display after 120s
   fi
   $HDPARM -S 4 /dev/hda > /dev/null 2>&1 # spindown after 20s
   $HDPARM -B 1 /dev/hda > /dev/null 2>&1 # enable drives's APM
}
# state of battery changed
# shutdown if battery capacity is low
battery (){
   if grep -q discharging $BAT_STATE
   then
      BAT_REMAIN=`awk '/remaining/ { print $3 }' $BAT_STATE`
      if (($BAT_REMAIN < `awk '/warning/ { print $4 }' $BAT_INFO`))
      then
         $LOGGER "battery capacity is critically low"
         # Nel mio caso faccio sospendere il pc ma si può tranquillamente farlo spegnere
         btn_sleep
         # btn_pwr # Nel caso in cui lo si voglia far spegnere
      fi
   fi
}

# lid closed/opened
# Se avete da inserire qualche opzione per quando il coperchio si chiude (tipo metterlo in standby)
lid_btn (){
   if grep -q open $LID_STATE
   then
      $LOGGER "Lid opened"
   else
      $LOGGER "Lid closed"
   fi
}

# Scripts per le combinazioni Fn+fx
#
# Z(Fn+f1)
z_btn (){
   echo "TODO"
}

# Abilita/disabilita wireless(Fn+f2)
wireless_btn (){
   # get the current state of the wireless
   WFSTATUS=`ifconfig | grep eth1`

   export DISPLAY=:0.0
   if [ -n "$WFSTATUS" ]; then
     /home/lenny/net/wi.red-fi/wireless-handler.sh down
   else
     /home/lenny/net/wi.red-fi/wireless-handler.sh up
   fi
}

# Abilita/disabilita volume(Fn+f10)
volmute_btn (){
   amixer -c0 sset Surround,0 toggle
   amixer -c0 sset Front,0 toggle
}

# Abbassa volume(Fn+f11)
voldown_btn (){
   amixer -c0 sset Surround,0 10%-,10%-
   amixer -c0 sset Front,0 10%-,10%-
}

# Alza volume(Fn+f12)
volup_btn (){
   amixer -c0 sset Surround,0 10%+,10%+
   amixer -c0 sset Front,0 10%+,10%+
}

# Scripts per i tasti multimediali
#
# Centrino SpeedStep pressed
centrino_btn (){
   echo "TODO"
}

# Mailbutton pressed
mail_btn (){
   echo "TODO"
}

# Webbutton Pressed
web_btn (){
   echo "TODO"
   su lenny -c '/usr/bin/firefox --display=:0'
}

# Touchpad pressed
touchpad_btn (){
   # get the current state of the touchpad
   TPSTATUS=`/usr/local/bin/synclient -l | grep TouchpadOff | awk '{print $3}'`

   if [ $TPSTATUS == 0 ]; then
      /usr/local/bin/synclient TouchpadOff=1
   else
      /usr/local/bin/synclient TouchpadOff=0
   fi
}

# Powerbutton pressed
pwr_btn (){
   $LOGGER "Powerbutton pressed"
   $LOGGER "shutdown initiated"
   /sbin/init 0
}

# Scripts per i tasti del lettore CD
#
# Preview track
prev_btn(){
   echo "TODO"
}

# Next track
next_btn(){
   echo "TODO"
}

# Stop track
stop_btn(){
   echo "TODO"
}

# Play/pause track
playpause_btn(){
   echo "TODO"
}

# Con i dati ottunuti attraverso il
# tail -f /var/log/acpid | grep received
# si costruisce un case che farà eseguire i vari comandi
case "$*" in
   ac_adapter\ AC\ 00000080\ 00000000)
        acad_out
   ;;
   ac_adapter\ AC\ 00000080\ 00000001)
        acad_in
   ;;
   battery\ BAT0\ 00000081\ 00000001)
        battery
   ;;
   battery\ BAT0\ 00000080\ 00000000)
        $LOGGER "Battery Plugged Out"
   ;;
   battery\ BAT0\ 00000080\ 00000001)
        $LOGGER "Battery Plugged In"
   ;;
   lid\ LID\ 00000080\ ????????)
   # the last eight digits count the times the lid was shut
        lid_btn
   ;;
   #
   # Combinazione speciali Fn+Fx
   sleep\ SLPB\ 00000080\ ????????)
        sleep_btn
   ;;
   #hotkey\ ATKD\ 00000080\ ????????)
   #     z_btn
   #;;
   #hotkey\ ATKD\ 00000000\ ????????)
   #     #wireless_btn
   #;;
   hotkey\ ATKD\ 00000032\ ????????)
        volmute_btn
   ;;
   hotkey\ ATKD\ 00000031\ ????????)
        voldown_btn
   ;;
   hotkey\ ATKD\ 00000030\ ????????)
        volup_btn
   ;;
   #
   #Tasti multimediali
   hotkey\ ATKD\ 0000005c\ ????????)
        centrino_btn
   ;;
   hotkey\ ATKD\ 00000050\ ????????)
        mail_btn
   ;;
   hotkey\ ATKD\ 00000051\ ????????)
        web_btn
   ;;
   hotkey\ ATKD\ 0000006b\ ????????)
        touchpad_btn
   ;;
   button?power\ PWRF\ 00000080\ ????????)
        # the last eight digits count the times the button was pressed
        pwr_btn
   ;;
   #
   #Tasti lettore CD
   hotkey\ ATKD\ 00000040\ ????????)
        prev_btn
   ;;
   hotkey\ ATKD\ 00000041\ ????????)
        next_btn
   ;;
   hotkey\ ATKD\ 00000043\ ????????)
        stop_btn
   ;;
   hotkey\ ATKD\ 00000045\ ????????)
        playpause_btn
   ;;
   *)
        no_action
  ;;
esac

Ora il mio problema è capire qual'è il codice del pulsante Fn+f2...purtroppo ho l'impressione che l'acpi non cattura nessun evento quando la combinazione suddetta viene premuta, ora io vorrei sapere come mai. C'è qualcuno che ha smanettato ed è riuscito a catturare anche quell'evento?e a capire qual'è il codice associato?io ho letto da qualche parte che si deve patchare qualcosa con il DSDT ma purtroppo non so nemmeno cosa sia, quindi spero che qualcuno più esperto di me mi illumini.
Avatar utente
lennynero
Linux 2.6
Linux 2.6
 
Messaggi: 567
Iscritto il: dom mag 02, 2004 23:00
Località: Salerno
Slackware: 14.1-x64
Kernel: 3.10.17
Desktop: xfce-4.10

Messaggioda prometeo79 » mer nov 01, 2006 0:34

Io ho abilitato il modulo asus-acpi e ho creato un file hotkey.sh in /etc/acpi da eseguire all'avvio

Questi sono quelli abilitati

Codice: Seleziona tutto
#!/bin/bash

case "$3" in
# Mute button
00000032)
o=`aumix -q | egrep 'vol 0, ?0'`
if [ -z $o ]; then
   aumix -S
   aumix -v0
else
   aumix -L
fi   
;;
# Volume up button
00000030)
    /usr/bin/aumix -v +2
;;
# Volume down button
00000031)
    /usr/bin/aumix -v -2
;;


Codice: Seleziona tutto
# Touchpad button
0000006b)
TPSTATUS=`/usr/local/bin/synclient -l | grep TouchpadOff | awk '{print $3}'`

test -z $TPSTATUS && exit 1

if [ $TPSTATUS = 0 ]; then
   /usr/local/bin/synclient TouchpadOff=1
else
   /usr/local/bin/synclient TouchpadOff=0
fi
;;


Codice: Seleziona tutto
# WiFi button
0000005d)
state=`. /etc/acpi/wireless.sh`

if [ "$state" = "0" ]; then
      echo -n 0 > /proc/acpi/asus/wled
else
      echo -n 1 > /proc/acpi/asus/wled
fi
;;


L'ultimo fa riferimento allo script wireless.sh

Codice: Seleziona tutto
for DEVICE in /sys/class/net/*; do
    if [ -d $DEVICE/wireless ]; then
# $DEVICE is a wireless device. Check if it's powered on:
   if [ `cat $DEVICE/device/power/state` = 0 ]; then
# It's powered on. Switch it off.
       echo -n 2 > $DEVICE/device/power/state;
       echo 0
   else
# It's powered off. Switch it on.
       echo -n 0 > $DEVICE/device/power/state;
       echo 1
   fi
    fi
done   


Per sapere qual'è l'evento dai la combinazione di tasti fn+f* e un

Codice: Seleziona tutto
cat /var/log/acpid
Avatar utente
prometeo79
Linux 3.x
Linux 3.x
 
Messaggi: 1278
Iscritto il: gio mar 17, 2005 0:00
Località: Torino
Slackware: 12

Prossimo

Torna a Laptop

Chi c’è in linea

Visitano il forum: Nessuno e 1 ospite

cron