enigma9o7
Crew Member
 
Posts: 1,222
Likes: 1,218
|
Post by enigma9o7 on Sept 10, 2023 19:33:22 GMT
The title is my question, but I'll give the backstory in case there's perhaps a better way to do it.
On one of my computers, it connects via usb to the internet thru a tablet that is connected to wifi. After resume from suspend, it loses the network connection, but it can be reset by unplugging and plugging back in the usb cable.
I found a command that resets it, so that's easier than unplugging/replugging:
sudo usb_modeswitch -v 0x04e8 -p 0x6864 --reset-usb and I adjusted my sudoers so that password is not required so that I could create a desktop file for it so we can click on an icon, which works fine, but what I really want is for it to happen automatically when resuming from suspend.
I see in moksha app settings for screen unlock and restart apps, but not resume-from-suspend apps, so doesn't look like Moksha has anything for this. So I expect I'm looking for a generic method....
|
|
enigma9o7
Crew Member
 
Posts: 1,222
Likes: 1,218
|
Post by enigma9o7 on Sept 11, 2023 17:06:23 GMT
|
|