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

2023년 7월 24일 월요일

wine + korean fonts

  • copy gulim.ttf to ~/.wine/drive_c/windows/Fonts
  • edit ~/.wine/system.reg
    • 파일에서 'MS Shell Dlg'를 찾아 'Gulim'으로 바꿔 줍니다. 
  • 참고
    • https://velog.io/@kiki3700/wine-%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%A8%EC%9D%B4-%ED%95%9C%EA%B8%80-%ED%8F%B0%ED%8A%B8-%EA%B9%A8%EC%A7%88-%EB%95%8C-%ED%95%B4%EA%B2%B0%ED%95%98%EB%8A%94-%EB%B0%A9%EB%B2%95
    • https://mail.bada-ie.com/board/view/?page=5&uid=1682&category_code=jvYw%7C%7CTbxg%7C%7C&code=all&key=&keyfield=

2023년 6월 30일 금요일

diablo 4 + wine + debian 12

  • wine-staging
    • https://wiki.winehq.org/Debian
  • lutris
    • replace Debian_11 with Debian_12
    • https://lutris.net/downloads
  • vulkan-drivers
    • https://github.com/lutris/docs/blob/master/InstallingDrivers.md 
    • sudo apt install libvulkan1 libvulkan1:i386
  • install steam desktop windows
  • https://www.devdungeon.com/content/install-lutris-gaming-debian
  • https://www.clien.net/service/board/cm_dia/18152098?od=T31&po=0&category=0&groupCd=
  • complaing about windows version
    • run as "windows 11"
  • complaing about EXPKEYSIG
    • wget -q -O- https://download.opensuse.org/repositories/home:/strycore/Debian_12/Release.key | gpg --dearmor | sudo tee /etc/apt/keyrings/lutris.gpg > /dev/null


 

2023년 5월 8일 월요일

mount local ext4 parition using wsl

powershell run as admin

 wsl --mount \\.\PHYSICALDRIVE1 --partition 1 --type ext4

 https://learn.microsoft.com/ko-kr/windows/wsl/wsl2-mount-disk

niri / debian / flatpak unable to open save dialog

  Create or edit your portal override config at ~/.config/xdg-desktop-portal/niri-portals.conf (or globally at /usr/share/xdg-desktop-porta...