Skip to content

Commit

Permalink
Disable wakeup on usb devices with udev
Browse files Browse the repository at this point in the history
  • Loading branch information
nikarh committed Jan 21, 2024
1 parent c1e1404 commit 7c232cb
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ ExecStartPre=/bin/bash -c "echo GPP0 >> /proc/acpi/wakeup"
ExecStart=/bin/bash -c "echo GPP8 >> /proc/acpi/wakeup"

[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target
4 changes: 4 additions & 0 deletions system/modules/home-pc-linux/power/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash -e

# Copy all configs to root
sudo cp -ufrT "$ROOT/root/" /
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ACTION=="add|change", SUBSYSTEM=="usb" ATTR{power/wakeup}="disabled"
1 change: 1 addition & 0 deletions system/profiles/home-pc-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ modules:
gui: true
- name: common/development
- name: common/work
- name: home-pc-linux/power
- name: home-pc-linux/android
- name: home-pc-linux/fancontrol
- name: home-pc-linux/fix-b550m-sleep
Expand Down
5 changes: 3 additions & 2 deletions user/workstation/user/home/.config/Code/User/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"rust-analyzer.debug.engineSettings": {

},
"terminal.integrated.gpuAcceleration": "on",
"terminal.integrated.gpuAcceleration": "off",
"terminal.external.linuxExec": "alacritty",
"terminal.integrated.enablePersistentSessions": false,
"editor.guides.indentation": true,
Expand Down Expand Up @@ -382,5 +382,6 @@
"[svg]": {
"editor.defaultFormatter": "jock.svg"
},
"window.zoomLevel": -1,
"terminal.integrated.enableImages": true,
"terminal.integrated.customGlyphs": false,
}
2 changes: 2 additions & 0 deletions user/workstation/user/home/.local/bin/init-input-devices.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

xinput --set-prop 'pointer:MSI Gaming Mouse' 'libinput Accel Speed' 0.9
xinput --set-prop 'ImPS/2 Logitech Wheel Mouse' 'libinput Accel Speed' 0.5
xinput --set-prop 'Logitech M705' 'libinput Accel Speed' 0
xinput --set-prop 'Logitech Wireless Mouse PID:4038' 'libinput Accel Speed' 0

# shellcheck disable=SC2046
setxkbmap $(cat ~/.config/Xorg/Xkbmap)
Expand Down

0 comments on commit 7c232cb

Please sign in to comment.