What is this for, that is, why are you doing this?
Prevent the mouse from waking up the PC, anyways its all good managed to get it working.
If you want to write a file on boot, use https://wiki.archlinux.org/title/Systemd#systemd-tmpfiles_-_temporary_files
However, I suspect there’s an easier way of disabling wake from the mouse.
Yeah I created my own script and linked it to a service file and yeah it worked.
No, an actual way to disable this via something like a kernel parameter without having to create additional scripts.
For example, a udev rule: https://wiki.archlinux.org/title/Udev#Waking_from_suspend_with_USB_device, replacing “enabled” with “disabled” like in https://bbs.archlinux.org/viewtopic.php?id=257425
Another solved thread. Are you aware you have solved 12 help threads, almost all of which you opened and most with some answer similar to “I managed to get it working” in some very vague way.
Ideally, when you find a solution to your problem, please let us all know. The goal is to have a searchable data base of solutions so if someone else had the same problem we can help them with whatever helped you.
Ok I will give that in mind.
THat actually seems like a better solution
So I have 2 startup scripts, one is for root and one is for standard.
The root version works perfectly but not the standard one.
#!/bin/sh [Unit] Description=Bootup scripts [Service] ExecStart=/home/joe/Scripts/startup_root.sh [Install] WantedBy=multi-user.target
#!/bin/sh echo EHC1 > /proc/acpi/wakeup echo EHC2 > /proc/acpi/wakeup echo XHC > /proc/acpi/wakeup exit 0
And this works perfectly
But with the standard user one it doesn’t work.
Here is the output of
#!/bin/sh [Unit] Description=Bootup scripts [Service] ExecStart=/home/joe/Scripts/startup.sh [Install] WantedBy=multi-user.target
here is the output of
#!/bin/sh imwheel xcape -e 'Super_L=Alt_L|F1' exit 0
But for some reason the standard one doesn’t work.
They both have execute permissions for the two shell scripts. Any ideas?
(note I know that I was suggested to use the
imwheel.service but it was not built in to this OS and I would rather just dump every startup command into one script.
I have merged your two similar topics together since the new topic was simply a continuation of this one. Please continue the conversation here.