jog dial klawisze kierunkowe

Przenośne komputery i problemy z nimi związane
13lenar
Piegowaty Guziec
Piegowaty Guziec
Posty: 3
Rejestracja: 15 mar 2022, 13:43
Wersja Ubuntu: 20.04
Środowisko graficzne: Cinnamon
Architektura: x86_64

jog dial klawisze kierunkowe

Post autor: 13lenar »

witam posiadam laptop hp elitebook 2730p (ubuntu 22.04.) który jest wyposażony w dodatkowe klawisze kierunkowe użyteczne w trybie tablet. Klawisz ten jest nazywany przez producenta "jog dial" ma trzy pozycje: przechylenie lewo prawo oraz wciśnięcie do środka. Po zainstalowaniu ubuntu 22.04 jest rozpoznawane jedynie wciśnięcie do środka jako enter.
Na stronie : http://alice-at-ubuntu.blogspot.com/201 ... -back.html
znalazłem instrukcję aby skonfigurować ruch lewo prawo i jego ale opis zapisania efektu jest nieaktualny. Czy ktoś wie jak to zrobić aby efekt pozostał po ponownym uruchomieniu komputera?
Cytat instrukcji dla potomnych:
The TC4400 has a jog dial for pgup/pgdn on the side of the screen. The last time it worked out of the box was (when I used it) Gutsy Gibbon.
Recently I tried it, and it works in Hardy Heron also, where the wacom stuff doesn't work o-o-t-b.

Today I had to skip a class to get back my scroller, but at least it payed off. It was a lot easier than I thought. My bad luck was that I'm just a windows-user and not a linux-guru.
Here's how it works:

xev - "print contents of X events" - is the command to check, which button moves which key. The jog dial wasn't recognized in xev.

dmesg - "print or control the kernel ring buffer" showed me what is happening behind the screens.

It said:


[ 218.438785] atkbd.c: Unknown key pressed (translated set 2, code 0x87 on isa0060/serio0).
[ 218.438791] atkbd.c: Use 'setkeycodes e007 ' to make it known.
[ 218.479875] atkbd.c: Unknown key released (translated set 2, code 0x87 on isa0060/serio0).
[ 218.479881] atkbd.c: Use 'setkeycodes e007 ' to make it known.
[ 218.819908] atkbd.c: Unknown key pressed (translated set 2, code 0x86 on isa0060/serio0).
[ 218.819915] atkbd.c: Use 'setkeycodes e006 ' to make it known.
[ 219.041670] atkbd.c: Unknown key released (translated set 2, code 0x86 on isa0060/serio0).
[ 219.041678] atkbd.c: Use 'setkeycodes e006 ' to make it known.


for moving the jog dial "up" and "down" ways.

As for setkeycodes it wasn't so trivial. The "keycodes" doesn't match any keycode that xev gives back, so I tried from 1 to 109 until I found the keys I was looking for. (104: Prior; 109: Next)

In the end, for me the following command solved the problem:

sudo setkeycodes e006 104
sudo setkeycodes e007 109



I don't know if this affected my success, but I did a

sudo modprobe hp-wmi


and I left it like that. I wanted to get the 'sudo modprobe tc1100-wmi' work, but I couldn't, and that's how I accidentally found real soultion.

By the way these were the keycodes for moving:
102: Home
103: Up
104: Prior
105: Left
106: Right
107: End
108: Down
109: Next

To make the changes permanent you'll have to add the setkeycodes lines without the sudo to the /etc/rc.local before the "exit 0".
prymula
Piegowaty Guziec
Piegowaty Guziec
Posty: 27
Rejestracja: 06 sty 2023, 20:41
Wersja Ubuntu: inny OS
Architektura: ARM
Kontakt:

Re: jog dial klawisze kierunkowe

Post autor: prymula »

Czasami nadmiar jakiegokolwiek feauture może irytować, ale irytuje też niedobór. W moim Dellu brakuje np. pod klawiszem funkcyjnym włączenia/wyłączenia touchpada. Znalazłem w sieci co prawda skrypt wykorzystujący xinput, jednak jak nie wyłączę ręcznie to... a zresztą i tak działa jak chce !

A czy to:

Kod: Zaznacz cały

setkeycodes e006 104
setkeycodes e007 109
Nie powinno być czasami w skrypcie i uruchamiane aktywatorem z /etc/xdg/autostart ?

Pozdrawiam
https://pietraszczyk.smallhost.pl
ODPOWIEDZ

Wróć do „Laptopy”

Kto jest online

Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 60 gości