Popular Posts

Pages

Thursday, December 13, 2018

Manjaro Tweaks

===========================
Trackpoint settings
===========================
Add new file to /etc/udev/rules.d/ with following
===
KERNEL=="serio2", SUBSYSTEM=="serio", DRIVER=="psmouse", ATTR{rate}="200", ATTR{sensitivity}="150", ATTR{speed}="150"

===========================
Touchpad
===========================
Install xf86-input-synaptics
Run synclient to check settings
Add file to /etc/X11/xorg.conf.d/ with following
===
Section "InputClass"
        Identifier "Touchpad Two-finger middle click"
        MatchProduct "SynPS/2 Synaptics TouchPad"
        Driver "synaptics"
        MatchIsTouchpad "on"
        Option "ClickFinger2" "2" # Two finger press = middle click
        Option "ClickFinger3" "-1" # Disable three finger press
EndSection
===
Fix jumpy toucpad with Slim 90W adapter
===
Add file to /etc/udev/hwdb.d/ with following
===
libinput:name:SynPS/2 Synraptics TouchPad:dmi:*svnLENOVO:*:pvrThinkPadX220*
LIBINPUT_MODEL_LENOVO_X220_TOUCHPAD_FW81=1

===========================
Add display 47.952Hz & 50Hz modes [LCD actually still at 60Hz]
===========================
Add file to /etc/X11/xorg.conf.d/ with following
===
Section "Monitor"
    Identifier     "LVDS1"
    Modeline "1366x768_47.95" 71.73 1366 1414 1446 1884 768 770 775 794 +hsync -vsync
    Modeline "1366x768_50.00" 74.80 1366 1414 1446 1884 768 770 775 794 +hsync -vsync
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "intel"
    Screen         0
EndSection

Section "Screen"
Identifier     "Screen0"
Device         "Device0"
Monitor        "LVDS1"
    SubSection "Display"
        Modes          "1366x768_47.95"
        Modes          "1366x768_50.00"
    EndSubSection
EndSection
===
=========
Modify EDID
=========
Add file to /etc/X11/xorg.conf.d/ with
===
Section "Device"
    Identifier     "Device0"
    Driver         "intel"
    Screen         0
    Option         "CustomEDID" "LVDS1:/etc/X11/EDID.bin"
    Option         "IgnoreEDID" "false"
    Option         "UseEDID" "true"
EndSection
===
Create EDID.bin at /etc/X11/ with hex editor with following
(Taken from Lenovo X220 monitor windows driver)
===
  00,FF,FF,FF,FF,FF,FF,00,30,AE,E2,40,00,00,00,00,00,14,01,03,80,1C,10,78,EA,D4,E5,95,59,57,8B,28,
  20,50,54,00,00,00,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,25,1D,56,D4,50,00,16,30,30,20,
  25,00,15,9C,10,00,00,1B,22,1D,56,06,52,00,1A,30,30,20,25,00,15,9C,10,00,00,1B,00,00,00,0F,00,8C,
  09,32,8C,09,28,1E,0A,00,30,E4,D8,02,00,00,00,FE,00,4C,50,31,32,35,57,48,32,2D,53,4C,42,31,00,95
===
===========================
Power saving
===========================
Add file(s) in /etc/modprobe/ with following
===
options i915 modeset=1 enable_fbc=1 fastboot=1
options drm vblankoffdelay=1
==
If using Intel wireless card also add
==
options iwlwifi d0i3_disable=N d0i3_timeout=1000 power_save=Y power_level=1 11n_disable=8
options iwldvm force_cam=N

===========================
Japanese input
===========================
===
Install fxitx fcitx-mozc fcitx-qt5 kcm-fcitx fcitx-gtk3
===
Edit ~/.xprofile to include
===
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx

===========================
H5321GW GPS
===========================
Install mbm-gps-control-git mbm-gpsd-pl4nkton-git
Create /etc/udev/rules.d/99-mbm.rules with following
===
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"
===

Start gpd deamon using sudo mbm-gpsd

Note: xgps requires python2-gobject2 pygtk

===========================
GUFW
===========================
===
Fix Problems opening
===
Unable to init server: Could not connect: Connection refused
...
/bin/gufw-pkexec: line 13: 27067 Segmentation fault      (core dumped) python3 ${LOCATIONS[${i}]} $1


Change /usr/share/polkit-1/actions/com.ubuntu.pkexec.gufw.policy
"/usr/bin/gufw-pkexec" to "/bin/gufw-pkexec"
===
===========================
USB3 uPD720200 (i7 model)
===========================
Fix Devices not detected
===
Update upd720200 firmware in Windows

No comments:

Post a Comment