Skip to content

Instantly share code, notes, and snippets.

@philipperoubert
philipperoubert / fix_scrollspeed.md
Last active November 4, 2022 20:03
Huawei Matebook 14S fix scroll speed

Fixing Scroll Speed on Huawei Matebook 14S

  • sudo nano /etc/gdm3/custom.conf
  • uncomment WaylandEnable=false
  • Run xinput and look for which ID your Touchpad is.
    • in my case it's 16 ↳ GXTP7863:00 27C6:01E0 Touchpad id=16 [slave pointer (2)]
  • Run xinput --list-props 16 (replace 16 with the ID you found above), look for "Synaptics Scrolling Distance" and not the ID of that
    • in my case it's 359 Synaptics Scrolling Distance (359): -180, -180
  • Run xinput --set-prop 16 359 -180, -180 (replace 16 and 359 with the IDs you found above)
  • The smaller the value (e.g. -200) the slower it will be (-100 in the other hand was too quick)
@philipperoubert
philipperoubert / toggle_audio.sh
Last active September 24, 2024 07:23
Huawei Matebook 14S Audio Fix
value=`cat selected_audio_output.txt`
if [ -z "$value" ]
then
value=0
fi
if [ $value -eq 0 ]
then
sudo hda-verb /dev/snd/hwC0D0 0x16 0x701 0x0001 // move output to speaker dac