Comments (3)
Maybe a different udev event (other than "add") is triggering the wake-up? You can log udev events with udevadm monitor
. Maybe give that a go while suspending with the controller plugged in.
I'm not sure I can really do anything about it from the firmware side. It's odd that you didn't have this issue on the B0XX firmware, because that should have the exact same endpoints.
from haybox.
Thanks for the tip and prompt response. First off, I don't expect support on this, so feel free to discard this comment and carry on, I'm just documenting what I tried. Thanks again for your work on this open source project.
I'm not super familiar with this area but I tried a number of things. As you suggested I watched udevadm monitor
, and I added a rule to match ACTION=="change"
, no success. And yes I am reloading the rules with sudo udevadm control --reload-rules
.
I tried making a broader rule with this:
ATTRS{idVendor}=="2341", ATTRS{idProduct}=="8036", ATTR{power/wakeup}="disabled"
I then tried testing the rule with udevadm test
:
for x in /dev/input/by-id/usb-Arduino_LLC_Arduino_Leonardo_HIDPCHIDGF-if02-event-kbd /dev/input/by-id/usb-Arduino_LLC_Arduino_Leonardo_HIDPCHIDGF-if03-event-joystick /dev/input/by-id/usb-Arduino_LLC_Arduino_Leonardo_HIDPCHIDGF-if03-joystick; do sudo udevadm test $x; done
(I realize now those are likely the wrong paths to be supplying to udevadm test)
The output included:
js0: /etc/udev/rules.d/90-usb-wakeup.rules:7 ATTR '/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.3/0003:2341:8036.003B/input/input85/js0/power/wakeup' writing 'disabled'
js0: /etc/udev/rules.d/90-usb-wakeup.rules:7 Failed to write ATTR{/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.3/0003:2341:8036.003B/input/input85/js0/power/wakeup}, ignoring: No such file or directory
event13: /etc/udev/rules.d/90-usb-wakeup.rules:7 ATTR '/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.3/0003:2341:8036.003B/input/input85/event13/power/wakeup' writing 'disabled'
event13: /etc/udev/rules.d/90-usb-wakeup.rules:7 Failed to write ATTR{/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.3/0003:2341:8036.003B/input/input85/event13/power/wakeup}, ignoring: No such file or directory
event12: /etc/udev/rules.d/90-usb-wakeup.rules:7 ATTR '/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.2/0003:2341:8036.003A/input/input84/event12/power/wakeup' writing 'disabled'
event12: /etc/udev/rules.d/90-usb-wakeup.rules:7 Failed to write ATTR{/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.2/0003:2341:8036.003A/input/input84/event12/power/wakeup}, ignoring: No such file or directory
I identified that my b0xx was plugged into: /sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/
This led me to inspect the wakeup
files:
$ cd /sys/devices/pci0000:00/0000:00:14.0
$ find . -type f -name 'wakeup' | xargs -I {} bash -c 'echo {} && cat {}'
./usb1/1-12/power/wakeup
disabled
./usb1/power/wakeup
disabled
./usb1/1-1/power/wakeup
disabled
./usb1/1-13/power/wakeup
disabled
./usb1/1-4/power/wakeup
disabled
./usb1/1-2/power/wakeup
disabled
./power/wakeup
enabled
./usb2/power/wakeup
disabled
I forget if I had manually intervened with some of these to disable them during my testing, but what I can say is that the only thing which solved the issue for me was disabling wakeup on the single enabled
device seen there, the parent device:
echo disabled | sudo tee ./power/wakeup
Of course, this also disables my keyboard connected to the same device from waking up my pc.
It's strange that neither ./usb1/power/wakeup
nor ./usb1/1-1/power/wakeup
being disabled prevents the wakeup.
Random note, this command was also helpful in walking through the parent devices:
udevadm info --attribute-walk --path=$(udevadm info --query=path --name=/dev/input/by-id/usb-Arduino_LLC_Arduino_Leonardo_HIDPCHIDGF-if03-event-joystick)
from haybox.
Hmm that's weird. Maybe the device is not directly triggering a wake-up but is triggering it through some other layer of software. Not sure how that would work though. Only other thing I can think to try right now is maybe comparing the udev events against the stock B0XX firmware to see if there's any noticeable differences.
from haybox.
Related Issues (20)
- two mod_x buttons? HOT 3
- SwitchBackend analog offset
- Is it possible to send a button hold on boot on GameCube? HOT 2
- Default "DefaultKeyboardMode" not working with LBX HOT 7
- Create a macro to enable training mode restart HOT 2
- Windows not recognizing LBX / Startup Help HOT 2
- Default FGC mode has likely-unintended mixed L/R and LT/RT layout HOT 2
- SNES support HOT 14
- twoIP Edge Case Clarification HOT 1
- Mode Memory (on unplug) HOT 4
- Release schedule HOT 2
- 'home' button mapping on pico (GPIO11) is the same pin as the rumble pin on Arte's rectangle FW. [Pico] HOT 1
- Sonic Superstars (Switch) - can't select Chaos Emerald ability HOT 4
- Issues with Rivals of Aether on LBX HOT 1
- Nick Brawl 2 Support HOT 1
- XInput not working with pico (but all other backends do) HOT 7
- Configurator Branch - Inputs for mode change / default mode HOT 2
- Gamecube adapter not working with latest version of haybox device HOT 1
- Xbox 360 compatibility
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from haybox.