justinweiss
UBUniversal Blue
•Created by antheas on 4/16/2024 in #🛟bazzite-help
GPD Gyro woes after sleep
I'm still curious whether reading the raw data from sysfs will work on the win 4 after a suspend / resume
77 replies
UBUniversal Blue
•Created by antheas on 4/16/2024 in #🛟bazzite-help
GPD Gyro woes after sleep
On the mini, I tried a version of the driver that doesn't set up an IRQ. Reading the raw gyro data still works after a suspend, but I can't get hhd to start with that hacked up driver, just get this in a loop:
77 replies
UBUniversal Blue
•Created by antheas on 4/16/2024 in #🛟bazzite-help
GPD Gyro woes after sleep
if it's fine when you read the data raw, it's probably a buffer problem or hrtimer problem or a timing problem, something like that
77 replies
UBUniversal Blue
•Created by antheas on 4/16/2024 in #🛟bazzite-help
GPD Gyro woes after sleep
yeah, I think that watch command with hhd disabled would help figure that out. If the gyro stops reporting data after a suspend when a trigger has never been set up, it's probably not related to hrtimer
77 replies
UBUniversal Blue
•Created by antheas on 4/16/2024 in #🛟bazzite-help
GPD Gyro woes after sleep
nothing needs to recover for me, I don't get a stack trace. But the mini is also using IRQ triggers.
77 replies
UBUniversal Blue
•Created by antheas on 4/16/2024 in #🛟bazzite-help
GPD Gyro woes after sleep
That's this error? https://github.com/justinweiss/bmi260/blob/main/bmi260_core.c#L747
77 replies
UBUniversal Blue
•Created by antheas on 4/16/2024 in #🛟bazzite-help
GPD Gyro woes after sleep
Well, if it's a crash in the module it would be best if the module could recover without forcing the software to handle it
77 replies
UBUniversal Blue
•Created by antheas on 4/16/2024 in #🛟bazzite-help
GPD Gyro woes after sleep
With hrtimer I wonder if it's trying to access the hardware / bus before it's ready. But that code isn't any different than the 160 IIRC so I'd expect the same problem there. Haven't heard of any problems with that one though.
77 replies
UBUniversal Blue
•Created by antheas on 4/16/2024 in #🛟bazzite-help
GPD Gyro woes after sleep
What does dmesg say?
77 replies
UBUniversal Blue
•Created by antheas on 4/16/2024 in #🛟bazzite-help
GPD Gyro woes after sleep
I haven't been able to cause the problem on the Win Mini unfortunately, so there must be some difference. I was wondering if it was IRQ vs hrtimer triggers, but when I tried forcing hrtimer a while back I also don't remember seeing the problem. That's the first thing I'll try again once I have some time though.
77 replies
UBUniversal Blue
•Created by antheas on 4/16/2024 in #🛟bazzite-help
GPD Gyro woes after sleep
easiest way to see if gyro is sending data is
watch cat /sys/bus/iio/devices/iio\:device0/in_accel_x_raw
(assuming device0 is right on the Win 4)77 replies