2023년 8월 24일 목요일

linux button_scroll for logitech marble mouse

  • install latest input_remapper from github
config "input_combination": [
{
"type": 2,
"code": 1,
"origin_hash": "6c9c12eca71fac1eb7c74e44715e8303"
},
{
"type": 1,
"code": 274,
"origin_hash": "6c9c12eca71fac1eb7c74e44715e8303"
}
],
"target_uinput": "mouse",
"output_type": 2,
"output_code": 8,
"mapping_type": "analog",
"deadzone": 0.0,
"gain": -2.0,
"expo": -0.85


type 2/code 1 => Y-axis movement
type 1/code 274 => middle button?
output_type 2/output_code 8 => v-wheel movement

  • libinput(dynamic)
    • marble mouse
sudo xinput set-prop "Logitech USB Trackball" "libinput Button Scrolling Button" 8
sudo xinput set-prop "Logitech USB Trackball" "libinput Scroll Method Enabled" 0 0 1

  • marble fx(remapped middle-button)
sudo xinput set-prop "Arduino LLC Arduino Micro" "libinput Button Scrolling Button" 7
sudo xinput set-prop "Arduino LLC Arduino Micro" "libinput Scroll Method Enabled" 0 0 1


  • permanent
    • xorg.conf : overriden by gsettings for gnome, but needed for openbox
    • /etc/X11/xorg.conf.d/10-libinput.conf
Section "InputClass"
Identifier "Marble Mouse"
MatchProduct "Logitech USB Trackball"
MatchDriver "libinput"
Option "ScrollMethod" "button"
Option "ScrollButton" "8"
Option "MiddleEmulation" "true"
EndSection








logitech marble fx usb converter

  • marble_fx
    • only works if pin 2,3 are used 
  • Logitech_Trackman_Marble_FX_PS2_to_USB_converter
    • working(unstable?)

https://github.com/dkao/Logitech_Trackman_Marble_FX_PS2_to_USB_converter

 

arduino micro pinout

https://www.etechnophiles.com/arduino-micro-pinout-schematic-and-specifications/

ps2 female connector pinout

https://www.engineersgarage.com/how-to-interface-ps2-mouse-with-arduino-part-35-49/

https://www.engineersgarage.com/insight-how-ps2-connector-works/

p1 data
p3 gnd
p4 vcc
p5 clk

SOCKET side
5 6
3 4
1 2

box side
6 5
4 3
2 1

6     (5clk)
(4vcc) 2 (1data) (3gnd)
 

https://ko.aliexpress.com/i/1005002069146728.html

 

https://playground.arduino.cc/ComponentLib/Ps2mouse/

pin side

clk [] nc

gnd  vcc

data  nc


// correct one

clk         nc

----------

gnd data nc vcc

2023년 8월 11일 금요일

disable ryzen turbo boost in windows 10

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\54533251-82be-4824-96c1-47b60b740d00\be337238-0d82-4146-a960-4f3749d470c7


Attributes 1 => 2

 

Control Panel -> Power Options -> Processor power management ->  Processor performance boost mode(프로세서 성능 강화 모드) -> Disabled

 

https://blogpack.tistory.com/890

 

2023년 8월 3일 목요일

debian 12 bookworm + rtl8852ce wifi

  • install with wired lan
  • https://github.com/lwfinger/rtw89 
    • follow DKMS packaging for debian and derivatives