Attempt to add MSI Claw support?

Hey @R3ZEN is the controller in desktop mode or gamepad mode when you are in the bazzite desktop? also @antheas for tracking
287 Replies
R3ZEN
R3ZENโ€ข3mo ago
It is in desktop mode Only the mouse works with r3 and rt and lt for Zoom in on web
HikariKnight
HikariKnightOPโ€ข3mo ago
what does hhd.contrib evdev show?
R3ZEN
R3ZENโ€ข3mo ago
Bro I just uninstall it and installed windows I am happy to help But you will need to help me get it to dual boot Cus I don't know how to do that
antheas
antheasโ€ข3mo ago
its ok windows is more useful
R3ZEN
R3ZENโ€ข3mo ago
How come
antheas
antheasโ€ข3mo ago
if you want to use wireshark
HikariKnight
HikariKnightOPโ€ข3mo ago
ok i will leave you in antheas hands then ๐Ÿ˜„
antheas
antheasโ€ข3mo ago
we need to record the commands for msi center but its a pain so maybe windows it is
R3ZEN
R3ZENโ€ข3mo ago
? ?
HikariKnight
HikariKnightOPโ€ข3mo ago
i dont use windows so i am of little to no help, if he says its better to grab the data from windows i trust him
R3ZEN
R3ZENโ€ข3mo ago
Guys also one thing to note I live in india and it's currently 12:33 in the night so we are going to have a timezone issue Just tell me how to dual boot and I will help
antheas
antheasโ€ข3mo ago
you dont need to dualboot
HikariKnight
HikariKnightOPโ€ข3mo ago
this is fine, it just adds time. it is what happens when working across timezones
antheas
antheasโ€ข3mo ago
just install wireshark with USBPcap then do recordings of MSI Center
R3ZEN
R3ZENโ€ข3mo ago
K I will
antheas
antheasโ€ข3mo ago
or not, is the Claw cheaper in india or sth whats going on with that
R3ZEN
R3ZENโ€ข3mo ago
No I got it from dubai
antheas
antheasโ€ข3mo ago
whats the logic behind buying it
R3ZEN
R3ZENโ€ข3mo ago
I heavnt even checked the indian market price Man the shop owner said it's the best and it's also performing really good for me The stats are old and before the latest bios update
antheas
antheasโ€ข3mo ago
seems like shop owner decided to offload old product
R3ZEN
R3ZENโ€ข3mo ago
It performs really well now Atleast for me it does
antheas
antheasโ€ข3mo ago
its just not worth the money its not bad
HikariKnight
HikariKnightOPโ€ข3mo ago
tbf i did hear msi and intel did do some elbow grease to improve it, idk by how much though as the comparisons i saw was against just the msi claws old updates not against the other handhelds
R3ZEN
R3ZENโ€ข3mo ago
Comeon man I spend a good amount on it I don't appreciate this I can't just afford a gaming beast every single day It good enough for me
antheas
antheasโ€ข3mo ago
its not bad but the Ally is cheaper
R3ZEN
R3ZENโ€ข3mo ago
Plus I only for it for the mods on some games I already have a ps5
antheas
antheasโ€ข3mo ago
and is faster soooo nobody bought it and we have no support for it
R3ZEN
R3ZENโ€ข3mo ago
Well I can't do anything about it now can i
antheas
antheasโ€ข3mo ago
if you can get some recordings switching between mouse mode and gamepad mode, i can fix that
R3ZEN
R3ZENโ€ข3mo ago
Its good enough for me so I would just have to wilve through it
HikariKnight
HikariKnightOPโ€ข3mo ago
it would be nice to get support for it if possible though ๐Ÿ™‚
antheas
antheasโ€ข3mo ago
i would need a device or someone to to the research for it
R3ZEN
R3ZENโ€ข3mo ago
On windows you mean It's just a click of a button
HikariKnight
HikariKnightOPโ€ข3mo ago
antheas is the dev of HHD which handles all the handheld controls, so if you can get him the readings he needs through wireshark then he should hopefully be able to add controller support
R3ZEN
R3ZENโ€ข3mo ago
K I will try my best And pardon me if I am not available all the time I have a pretty busy schedule But I will try my best
HikariKnight
HikariKnightOPโ€ข3mo ago
https://www.wireshark.org/ install it with USBPcap like he said and get some recordings of msi center switching the controls like he said
Wireshark
Wireshark ยท Go Deep
Wireshark: The world's most popular network protocol analyzer
HikariKnight
HikariKnightOPโ€ข3mo ago
this is fine, having someone willing to help test and get the info needed is still huge. it will take the time it takes so there is no rush we are busy ourselves too ๐Ÿ™‚ had to go through a very similar process with the ally x too when we got approached with wanting support for it.
R3ZEN
R3ZENโ€ข3mo ago
Thanks You really are friendly people BTW I am Rishik
HikariKnight
HikariKnightOPโ€ข3mo ago
i mostly just go by HK or Hikari, antheas is antheas
R3ZEN
R3ZENโ€ข3mo ago
Nice to meet you Hikari
antheas
antheasโ€ข3mo ago
thats my name except new manufacturer means everything is new we tease luke but he did the heavy lifting for asus
HikariKnight
HikariKnightOPโ€ข3mo ago
anyways im off the store, need to go there before they close, you have a nice day/night and we will catch up again when you got the readings for antheas ๐Ÿ™‚ i dont know how to use wireshark myself so i think antheas probably has to guide you on that ๐Ÿ˜…
R3ZEN
R3ZENโ€ข3mo ago
K GN
antheas
antheasโ€ข3mo ago
gn
HikariKnight
HikariKnightOPโ€ข3mo ago
goodnight
R3ZEN
R3ZENโ€ข3mo ago
so just installed all the drivers now what am I supposed to do?
antheas
antheasโ€ข3mo ago
Wireshark recordings
R3ZEN
R3ZENโ€ข3mo ago
K Guys sorry I will send the info you need tomorrow I had a busy day today and wasn't able to send it
HikariKnight
HikariKnightOPโ€ข3mo ago
dont sweat it, if you are busy you are busy ๐Ÿ™‚ people have lives (i am busy myself atm too)
R3ZEN
R3ZENโ€ข3mo ago
Hey I installed Wireshark but I don't know how to use it Guys ?
antheas
antheasโ€ข3mo ago
Windows program, just open and make it do its thing
R3ZEN
R3ZENโ€ข3mo ago
I did it shows nothing I don't understand
HikariKnight
HikariKnightOPโ€ข3mo ago
just to make sure (i dont know how to use wireshark myself) but you installed it usbpcap checked off right?
No description
No description
HikariKnight
HikariKnightOPโ€ข3mo ago
actually @antheas i just installed wireshark just to look around myself in it, with usbpcap installed it doesnt show a way to capture usb hence the confusion perhaps?
No description
No description
antheas
antheasโ€ข3mo ago
Usbpcap needs to be installed
HikariKnight
HikariKnightOPโ€ข3mo ago
it was selected to be installed during wireshark install though?
antheas
antheasโ€ข3mo ago
should be but hey windows
HikariKnight
HikariKnightOPโ€ข3mo ago
give me a sec and i will fire up the windows system and install it manually nothing, reinstalled usbpcap gonna see if i can try an older wireshark release nothing, went back to 4.2.5 which should be the version that fanthedeck used and there is no usb option even with usbpcap installed ๐Ÿค”
R3ZEN
R3ZENโ€ข3mo ago
I installed usbpcap and the other optional thing their was to install at the first time Guys ?
HikariKnight
HikariKnightOPโ€ข3mo ago
antheas is the one familiar with it, i couldnt even get the usb capture option to show up myself when i tried to set it up to try help guide you through it
antheas
antheasโ€ข3mo ago
its very tough and we have other priorities now, im sorry about that. I think it will be hard to test for both of us. If you manage to capture the gamepad switching between keyboard and gamepad i can look into that, otherwise i cant help at least the gamepad would work
HikariKnight
HikariKnightOPโ€ข3mo ago
@R3ZEN i got usb capture to show up copy the USBPcapCMD.exe from C:\Program Files\USBPcap into C:\Program Files\Wireshark\extcap then run wireshark you should now have the USBPcap option, double click it no idea to filter it to only look at what we want, but this should at least get us 1 step closer
R3ZEN
R3ZENโ€ข3mo ago
K will try thanks
HikariKnight
HikariKnightOPโ€ข3mo ago
sorry i cant be of more guidance
TheSecondKen
TheSecondKenโ€ข2mo ago
poking around on my claw, the device for the controller is VID_0DB0&PID_1901, though doing the wireshark usb capture doesnt seem to provide much when i trigger a mode switch. My best guess is that it is one of the bazillion HID devices, or I'm doing the capture wrong. I'll continue investigating since I am interested in HHD support for the claw.
TheSecondKen
TheSecondKenโ€ข2mo ago
https://github.com/NeroReflex/hid-msi-claw-dkms I found this. I quickly installed ubuntu on my claw and built, installed, and loaded the module. It seems to put the controller in gamepad mode, but i can't get xpad to load the /dev/input/js0 device for testing.
GitHub
GitHub - NeroReflex/hid-msi-claw-dkms
Contribute to NeroReflex/hid-msi-claw-dkms development by creating an account on GitHub.
antheas
antheasโ€ข2mo ago
we dont use kernel drivers for hid devices, it is unnecessary and complicated, however sudo hhd.contrib hidraw on bazzite will show you the msi claw hid devices list them here when you do that also in ubuntu, but you will have to figure out how to install it there and access the command. not that tough if you know python then, according to the kernel driver you sent, the command for gamepad mode is 0f00006036010000 for macro back keys and 0f00006036010100 for combination whatever that means so, at your own risk, after identifying which hidraw device has vid and pid of 0x0BD0, 0x1901 and has a usage page starting from 0xff and hopefully there is just one of those you can do sudo hhd.contrib hidraw X 0f00006036010000 to enable gamepad mode on your device, where X is hidrawX the number if that works, I can add it to hhd if you are in ubuntu https://github.com/hhd-dev/hhd/blob/2f8f2d143ebe9a712733eaac709fd62d6acab38c/usr/lib/udev/rules.d/83-hhd.rules#L31 echo 0db0 1901 | sudo tee /sys/bus/usb/drivers/xpad/new_id to get xpad to read the gamepad this rule is already part of bazzite if you do that and verify the command works, I can add it to hhd
TheSecondKen
TheSecondKenโ€ข2mo ago
Ok. I can try that probably tomorrow. And makes sense (re: kernel drivers)
antheas
antheasโ€ข2mo ago
what timezone are you in ie whats tomorrow
TheSecondKen
TheSecondKenโ€ข2mo ago
Oh sorry. EST so Friday
antheas
antheasโ€ข2mo ago
ok, lmk
TheSecondKen
TheSecondKenโ€ข2mo ago
ok, so running bazzite, there is a single HID device called "Xbox360 controller for windows" , with device id 0db0:1901, usage page: 0xffa0, usage: 0x0001. sending the command to the device is successful, but it doesn't change the mode. there are three hid devices with the same name, but hidraw2 is the one with usage page 0xffa0
antheas
antheasโ€ข2mo ago
Send the devices
TheSecondKen
TheSecondKenโ€ข2mo ago
/dev/hidraw0 0db0:1901 Usage Page: 0x000d Usage: 0x0022 Names: ' ' : 'Xbox360 Controller for Windows' /dev/hidraw1 0db0:1901 Usage Page: 0xffa0 Usage: 0x001 Names: ' ' : 'Xbox360 Controller for Windows' /dev/hidraw2 0db0:1901 Usage Page: 0x0001 Usage: 0x001 Names: ' ' : 'Xbox360 Controller for Windows'
antheas
antheasโ€ข2mo ago
yeah... maybe the hid id was wrong no it was correct but you cant tell from the kernel driver if you can in windows with wireshark try to find a command like this 0f00006036010000 It will only be on one of the USBPCaps
Idefix Roberto
Idefix Robertoโ€ข2mo ago
Can I help with something? I have the msi claw and I would like to be able to use it with bazzite
TheSecondKen
TheSecondKenโ€ข2mo ago
just need to figure out the wireshark stuff, I had tried it before but didn't seem to be capturing any commands when the mode was switched. Installing windows right now since I wiped it to install bazzite.
BANPOTK
BANPOTKโ€ข2mo ago
I think controller mouse events overlap gamepad events, causing the gamepad buttons to not work. https://youtu.be/0i5sccTdtDo
BANPOTK
BANPOTKโ€ข2mo ago
If I can turn off the mouse event commands, I think the gamepad buttons can work as well.
BANPOTK
BANPOTKโ€ข2mo ago
I sent boot log for anyone who can analyze
BANPOTK
BANPOTKโ€ข2mo ago
I try to use command sudo hhd.contrib hidraw X 0f00006036010000 only Page: 0xffa0 it work but not response
No description
antheas
antheasโ€ข2mo ago
youre not expected to see a response try also the xpad driver rule
BANPOTK
BANPOTKโ€ข2mo ago
I already set
No description
BANPOTK
BANPOTKโ€ข2mo ago
HHD service not running
No description
BANPOTK
BANPOTKโ€ข2mo ago
Try to run hhd in CLI output here.
No description
antheas
antheasโ€ข2mo ago
Oh tuned is broken You're missing the xpad rule
BANPOTK
BANPOTKโ€ข2mo ago
How to setup this
antheas
antheasโ€ข2mo ago
. Put " in echo maybe it helps
BANPOTK
BANPOTKโ€ข2mo ago
I try this but same result.
No description
BANPOTK
BANPOTKโ€ข2mo ago
Reboot require?
antheas
antheasโ€ข2mo ago
Rip No
BANPOTK
BANPOTKโ€ข2mo ago
Linux 6.12-rc4 Adding Controller Support For The MSI Claw A1M & 8Bi...
Sent out overnight were a few input subsystem patches ahead of the Linux 6.12-rc4 kernel release tomorrow
antheas
antheasโ€ข2mo ago
That's just the xpad rule That I'm giving you as a command
TheSecondKen
TheSecondKenโ€ข5w ago
Still poking around Wireshark because there's a lot of capture when doing the USB, found a hid event that starts with 0f00, but it's 0f00003c26000000
antheas
antheasโ€ข5w ago
use a good filter to see all of them and do apply as column to see them cleanly
TheSecondKen
TheSecondKenโ€ข5w ago
some quick testing and sending the command sudo hhd.contrib hidraw 4 0f00003c24030000 seems to have put it in some sort of controller mode. (for some reason the device is now hidraw4 probably because i have a keyboard and mouse plugged in) doing some quick testing, navigation around the steam interface seems to work, controller calibration/testing in the settings doesn't work at all (but that's not the fault of HHD as far as i can tell) Installed a game, and while some of the controller buttons work, the game seems to thilnk its in keyboard mode, and the mappings are all wrong. Left stick works, but d-pad just moves the character as well instead of the expected functions, right stick doesnt do anything. I'll keep poking around wireguard and noting down hid events that look promising. I have to leave home shortly, but I can continue investigating later tonight (EST, probably around 7pm)
antheas
antheasโ€ข5w ago
i am very dumb youre right it is hex so this 0f00006036010000 needs to become 0f00003c24010000 wait your command is correct, but it needs a 1 instead of a 3 otherwise it will use dinput
TheSecondKen
TheSecondKenโ€ข5w ago
Ah. Ok. I'll try that when I get back home. I have the 0f00000324010000 in my notepad as well. Ran the 2403 first and the joystick was interacting with the terminal, then ran the 2401 and it stopped, but I didn't think to test it in steam gamescope ok, sending the command sudo hhd.contrib hidraw 7 0f00003c24010000 (the device was now at hidraw7 for some reason), and switching to gamescope resulted in all the normal controller buttons working both in game (the game now detected a controller and all inputs worked as expected), as well as in the controller test interface. the only buttons that don't work are the two special buttons on the front that normally bring up MSI Center (left side bottom), and the MSI Center quick panel (right side bottom). I'd assume (though I could be wrong), that at least one of those special buttons would open the right side settings panel. in sudo libinput debug-event the two front buttons show as KEY_F15 (Left) and KEY_F16 (Right). The back buttons do nothing at all. these mappings might be outside of the realm of HHD though.
BANPOTK
BANPOTKโ€ข5w ago
I tested it and got the same result. I think it should be enabled by default from boot. And use Steam Input to use on desktop mode
antheas
antheasโ€ข5w ago
turn on hhd it already has support for those it just didnt run the command
BANPOTK
BANPOTKโ€ข5w ago
I found a new problem.Wifi lost when wake up from sleep
BANPOTK
BANPOTKโ€ข5w ago
BANPOTK
BANPOTKโ€ข5w ago
GitHub
HandheldCompanion/HandheldCompanion/Devices/MSI/ClawA1M.cs at main ...
ControllerService. Contribute to Valkirie/HandheldCompanion development by creating an account on GitHub.
BANPOTK
BANPOTKโ€ข5w ago
I found device AT Translate Set 2 keyboard to map Quick Access (Right) and MSI Menu (LEFT) key to F15 and F16 key
No description
BANPOTK
BANPOTKโ€ข5w ago
I try to comment or delete evdev code in file /etc/udev/hwdb.d/83-hhd.hwdb but not work.
No description
BANPOTK
BANPOTKโ€ข5w ago
AT Translate Set 2 keyboard still appear
antheas
antheasโ€ข5w ago
its ok just launch hhd
TheSecondKen
TheSecondKenโ€ข5w ago
How do I launch HHD? That's the one part I got confused about I could open the side menu with swipe, just not the buttons
BANPOTK
BANPOTKโ€ข5w ago
type hhd in terminal or start service by command systemctl start hhd@$(whoami)
TheSecondKen
TheSecondKenโ€ข5w ago
Interesting. Pretty sure that was one of the things I did. I'll try again tonight.
antheas
antheasโ€ข5w ago
it will autodetect the controller and fix the buttons if you set it to xinput mode unless i made a mistake
BANPOTK
BANPOTKโ€ข5w ago
No description
antheas
antheasโ€ข5w ago
yes thats the built in keyboard you cant get it to dissappear and you want it to have f15 and f16
BANPOTK
BANPOTKโ€ข5w ago
Is it possible to change F15 and F16 keyboard to another?
antheas
antheasโ€ข5w ago
hhd reads those just let it be
BANPOTK
BANPOTKโ€ข5w ago
and Is it possible to map combo key ex. CTRL+2?
antheas
antheasโ€ข5w ago
can you listen to me tell me the vid and pid of the msi claw i think i have it
BANPOTK
BANPOTKโ€ข5w ago
how to get vid and pid?
antheas
antheasโ€ข5w ago
run ujust _hhd-dev i added it
BANPOTK
BANPOTKโ€ข5w ago
No description
BANPOTK
BANPOTKโ€ข5w ago
is it complete? still this a long time
antheas
antheasโ€ข5w ago
Yes it is
BANPOTK
BANPOTKโ€ข5w ago
No description
BANPOTK
BANPOTKโ€ข5w ago
I think PID is wrong 1901 not 9101
antheas
antheasโ€ข5w ago
fixed
BANPOTK
BANPOTKโ€ข5w ago
already installed what do yo want? and how to get it
antheas
antheasโ€ข5w ago
does it work?
BANPOTK
BANPOTKโ€ข5w ago
No description
antheas
antheasโ€ข5w ago
the front buttons should work now
BANPOTK
BANPOTKโ€ข5w ago
Log info show QAM Pressed 1 when I pressed Left button
antheas
antheasโ€ข5w ago
are you sure its the left?
BANPOTK
BANPOTKโ€ข5w ago
yes i sure Right button is not response
antheas
antheasโ€ข5w ago
thats ok, the right button is xbox ok I added an initialization, so now hhd will also switch it to xbox mode
BANPOTK
BANPOTKโ€ข5w ago
I detected a left button press left button it press xbox button and A button Is it problem?
TheSecondKen
TheSecondKenโ€ข5w ago
Does the rumble work? That's the one thing in the test interface that didnt seem to do anything
BANPOTK
BANPOTKโ€ข5w ago
but still need command sudo hhd.contrib hidraw 2 0f00003c24010000 it's work at first time I try to test in gaming mode rumble is work
TheSecondKen
TheSecondKenโ€ข5w ago
Cool. I'll update my HHD when I get home and test it out.
antheas
antheasโ€ข5w ago
You dont I made it write it
TheSecondKen
TheSecondKenโ€ข5w ago
Cool. This might be a topic for a different thread, but if I wanted to contribute RGB or TDP control, where would I start looking? Willing to contribute code and testing efforts.
BANPOTK
BANPOTKโ€ข5w ago
i think you can do it continue to this thread how to run it at boot?
antheas
antheasโ€ข4w ago
When it releases yes For now you need to run the _hhd-dev command when you revoot
BANPOTK
BANPOTKโ€ข4w ago
No description
BANPOTK
BANPOTKโ€ข4w ago
it is running but gamepad mode not work It's still run in mouse and keyboard mode
antheas
antheasโ€ข4w ago
Maybe I wrote the wrong xommabd Run it like before to show an error I'll tell you later but for now doing Wireshark recordings and messing with contrib hidraw is enough
TheSecondKen
TheSecondKenโ€ข4w ago
Perfect!
BANPOTK
BANPOTKโ€ข4w ago
No description
BANPOTK
BANPOTKโ€ข4w ago
It's late at night now at my place. see you again tomorrow
antheas
antheasโ€ข4w ago
i moved the check hopefully it runs now
TheSecondKen
TheSecondKenโ€ข4w ago
Cool. I'm on my way home now so I'll play with it over dinner. Did the ujust _hhd-dev command and ran the HHD manually, it detects the QAM button, but the controller is still in mouse mode. Not throwing any errors to the console log and it's detecting the controller with the correct id
antheas
antheasโ€ข4w ago
I'll get you a better command later today
BANPOTK
BANPOTKโ€ข4w ago
It's still not working
antheas
antheasโ€ข4w ago
curl https://raw.githubusercontent.com/hhd-dev/hhd/master/hhd_cmd.sh | HHD_DEBUG=1 sh Here's the command to make the latest version run
BANPOTK
BANPOTKโ€ข4w ago
No description
BANPOTK
BANPOTKโ€ข4w ago
program look like work but controller still in mouse mode QAM button work
antheas
antheasโ€ข4w ago
Ok I'll fix it
BANPOTK
BANPOTKโ€ข4w ago
No description
BANPOTK
BANPOTKโ€ข4w ago
No description
BANPOTK
BANPOTKโ€ข4w ago
tune-adm error, I try to add parameter in file adjustor -> driver -> general -> init.py .It's work correctly, no warning line
BANPOTK
BANPOTKโ€ข4w ago
No description
antheas
antheasโ€ข4w ago
this is @Kyle Gospo handywork
BANPOTK
BANPOTKโ€ข4w ago
powerprofilectl error,I think tdp.general.profile not found
TheSecondKen
TheSecondKenโ€ข4w ago
Yeah it's probably not gonna find TDP stuff for Intel cpus
antheas
antheasโ€ข4w ago
yeah youre using the generic plugin for htpcs that only does power profiles and it seems like kyle messed that up for tuned initialization fixed
BANPOTK
BANPOTKโ€ข4w ago
No description
BANPOTK
BANPOTKโ€ข4w ago
Not work and have errors
antheas
antheasโ€ข4w ago
try again
BANPOTK
BANPOTKโ€ข4w ago
No description
antheas
antheasโ€ข4w ago
try again
TheSecondKen
TheSecondKenโ€ข4w ago
Ran the curl command and everything seems to work. HHD starts and the controller stops being in mouse mode I'm assuming that QAM will work in Gamescope only after the HHD included with bazzite is updated?
antheas
antheasโ€ข4w ago
No it will work bow Just run the command and go to gamemode
TheSecondKen
TheSecondKenโ€ข4w ago
Oh ok, let me try it again
antheas
antheasโ€ข4w ago
Oh the curl command n9 The ujust one
TheSecondKen
TheSecondKenโ€ข4w ago
Oh interesting. Now Gamescope says no controllers detected. Nvm. You meant run the ujust command. Yeah it's all working now
BANPOTK
BANPOTKโ€ข4w ago
I try to use ujust _hhd-dev It's work correctly but macro key on backside are not work
TheSecondKen
TheSecondKenโ€ข4w ago
Yeah the macro keys on the back are special. Not sure what MSI is doing here since they don't seem to fire hid or evdev events.
antheas
antheasโ€ข4w ago
You need to find out how to reprogram them in such a way where they can be seen
TheSecondKen
TheSecondKenโ€ข4w ago
I'll test out some things today.
antheas
antheasโ€ข4w ago
Last I heard it wasn't possible tho Which is part of the reason I gave up on the claw
TheSecondKen
TheSecondKenโ€ข4w ago
Yeah. I think the way MSI designed it, the only two things the back buttons can do are macros and combinations. I'll try and see if I can get any response out of the buttons in bazzite after poking around with Wireshark
antheas
antheasโ€ข4w ago
Has to be unique and for bonus points allow chording Can be any button combo
BANPOTK
BANPOTKโ€ข4w ago
I found new problem,When I enable hhd, volume button doesn't work. and when I turn off hhd service volume button back to work again.
antheas
antheasโ€ข4w ago
yes kde will get confused for 1 min or 2 when you start hhd because it does a switch on the volume keyboard i have a fix for that for onexplayer i did not apply to the claw
TheSecondKen
TheSecondKenโ€ข4w ago
Poking around in Wireshark and in Linux, right now im not sure if the back buttons are possible to map. Regardless of being in combo or macro mode, Linux doesn't seem to see any events and Wireshark only fires stuff in macro, but the events being fired are the key presses defined in the macro. And when setting the mode, the only thing that changes is the 240101 vs 240100. I feel like there is a raw event somewhere, but no idea which device would even fire it. I'll play around with RGB stuff next, probably late Thursday or Friday EST
BANPOTK
BANPOTKโ€ข4w ago
power-profiles-daemon already install in bazzite? I want to use command powerprofilesctl
antheas
antheasโ€ข4w ago
Yea But that's not tdp Actually not anymore Tuned something Tuned-adm
BANPOTK
BANPOTKโ€ข4w ago
powerprofilesctl command not found in latest version,volume control still not work both desktop mode and gaming mode
BANPOTK
BANPOTKโ€ข4w ago
No description
BANPOTK
BANPOTKโ€ข4w ago
Power Profile is working Edit file from adjustor Project -> src -> adjustor -> drivers -> general file init .py Schedule still not work,I will to find and fix this
antheas
antheasโ€ข4w ago
Schedule should work
BANPOTK
BANPOTKโ€ข4w ago
I try to choose anything in list,It returns error Schedule from sched_text 'scx_bpfland' closed with error code 101
Kyle Gospo
Kyle Gospoโ€ข4w ago
try lavd instead
BANPOTK
BANPOTKโ€ข4w ago
It's same 'Schedule from sched_text 'scx_lavd' closed with error code 101'
Kyle Gospo
Kyle Gospoโ€ข4w ago
what build you on/
antheas
antheasโ€ข4w ago
Well hhd works at least as for sched ext haha I know that when I tested my kernel on arch with the sched ext package it worked
BANPOTK
BANPOTKโ€ข4w ago
OK i found solution Schedule setting require root access but bpfland not work error: Failed to load BPF program permission denied (os error 13) My result in 24/10/2024 - when i run hhd,volume control still not work - Power Profile work by edit adjustor code - Custom schedule work require root access but bpfland has error See you again next time.
TheSecondKen
TheSecondKenโ€ข4w ago
still working on RGB commands. need to work on my wireshark filtering.
BANPOTK
BANPOTKโ€ข4w ago
I already sent git pull request both hhd and adjustor for fixed volume control not work and fixed tuned-adm error
antheas
antheasโ€ข4w ago
hi guys
antheas
antheasโ€ข4w ago
i need you to follow the instructions here https://github.com/hhd-dev/hwinfo/tree/master/devices
GitHub
hwinfo/devices at master ยท hhd-dev/hwinfo
Contribute to hhd-dev/hwinfo development by creating an account on GitHub.
antheas
antheasโ€ข4w ago
and either zip or PR me the claw ACPI data banpotk currently i made a bit of a mess on adjustor for developing so i cant release a new version the next few days so your pr will need to wait a bit i will release a fix for the volume buttons today, that will make it on the tues bazzite version does the device break after sleep? does the controller still work?
BANPOTK
BANPOTKโ€ข4w ago
wifi break when wake after sleep wifi model : killer BE1750x kernel module load : iwlwifi,wl and controller not work after wake from sleep too
antheas
antheasโ€ข4w ago
youre drip feeding me those issues do the hwinfo dump and i will try to update the kernel
BANPOTK
BANPOTKโ€ข4w ago
work in progress
antheas
antheasโ€ข4w ago
cat /sys/devices/virtual/dmi/id/product_name run this quickly form e cat /sys/devices/virtual/dmi/id/board_name actually this
BANPOTK
BANPOTKโ€ข4w ago
Claw A1M
antheas
antheasโ€ข4w ago
im going to start kernel build after you send it with experimental patch but i need the board_name is it also Claw A1M? please tell me im waiting
BANPOTK
BANPOTKโ€ข4w ago
MS-1T41
antheas
antheasโ€ข4w ago
thank you
BANPOTK
BANPOTKโ€ข4w ago
I have collected all the information. I will send it to you soon.
antheas
antheasโ€ข4w ago
thanks
antheas
antheasโ€ข4w ago
GitHub
Release 6.11.5-305: Speaker ID fixup & MSI Claw s2idle ยท hhd-dev/ke...
Switches to v3 of the Ally speaker firmware selector patch, adds a generous s2idle delay to the claw to see if that helps with sleep, and tweaks the styling of the handheld patch to make future dif...
BANPOTK
BANPOTKโ€ข4w ago
iwlwifi - issue with Intel(R) Killer(TM) Wi-Fi 7 BE1750 and Ubuntu
Hello, Recently I changed laptop for work. Built-in with Windows I wanted to install Ubuntu instead. I tried the LTS version (22.04) and the most recent version (23.10). The MSI prestige EVO 16 comes with this config: disk: NVMe SSD Controller PM9A1/PM9A3/980PRO SAMSUNG MZVL21T0HDLU-00BT7 cpu: I...
BANPOTK
BANPOTKโ€ข4w ago
Kernel Log when woke from sleep https://pastebin.com/enrx3wH5
Pastebin
MSI Claw A1M-Bazzite OS kernel log - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
BANPOTK
BANPOTKโ€ข4w ago
I found MSI Center M Log in Windows Location : C:\ProgramData\MSI\MSI_Center_M\Log\API but I'm not sure if this will help you.
antheas
antheasโ€ข4w ago
I don't have time to help you today You can try hidra and Ida decompiler although tbh don't expect mich Best thing you can do is setup a repo with the guys and to start decoding the controller commands with Wireshark Try the kernel when it comes out later today I did a fix for the msi claw similar to the ally Might help the controller
TheSecondKen
TheSecondKenโ€ข4w ago
RGB and back buttons are the last two areas I believe need figuring out from a pure controller standpoint. I'll poke around when I have a chance, I just have a lot of stuff going on
antheas
antheasโ€ข4w ago
Also the controller does not work after zleep But the kernel patch I made might help
TheSecondKen
TheSecondKenโ€ข4w ago
Ah. Ok I'll test that too.
antheas
antheasโ€ข4w ago
It should be on the next unstable it's building now It is on the unstable now How is it doing Did it help?
BANPOTK
BANPOTKโ€ข4w ago
I found a way to control RGB lights.
antheas
antheasโ€ข4w ago
did the patch in unstable help?
BANPOTK
BANPOTKโ€ข4w ago
No description
BANPOTK
BANPOTKโ€ข4w ago
I think to 3 lines to set pattern and color and last line to activate RGB mode
antheas
antheasโ€ข4w ago
weird pattern
TheSecondKen
TheSecondKenโ€ข4w ago
It's probably the three zones. (LStick, RStick, face buttons) But yeah I found that hid data in my Wireshark, and it looked weird to me I guess it would be longer than the other commands due to setting colors and stuff
antheas
antheasโ€ข4w ago
please test sleep when you can
BANPOTK
BANPOTKโ€ข4w ago
how to use it?
antheas
antheasโ€ข4w ago
make the device sleep in latest ver see if controller works afterwards
BANPOTK
BANPOTKโ€ข4w ago
I use Free USB Analyzer software https://freeusbanalyzer.com/
FREE USB Sniffer & Software USB Protocol Analyzer for Windows
Free Software USB Sniffer and Protocol Analyzer. Download this Freeware USB Packet Explorer and Protocol Analyser for Windows. Capture and Monitor USB Devices and Applications. Trace and Decode USB Connection Data
BANPOTK
BANPOTKโ€ข4w ago
It can select specific devices. I will to test it Still not work, wifi and controller is broke when device woke up but MSI Center and QAM button still work correctly
antheas
antheasโ€ข4w ago
did MSI Center and QAM button work before? did this update make it better?
BANPOTK
BANPOTKโ€ข3w ago
I already update to Testing channel no In lastest testing update kernel 6.11.5-307 - Device not sleep (LED power always ON and CPU fan still working) - Wifi and Controller still not work when device woke up but I try to put command sudo hhd.contrib hidraw 2 0F00003C24010000 controller come back to work again. no error message
antheas
antheasโ€ข3w ago
Ok great That's actually very goo @BANPOTK send me a log journalctl -b | fpaste after you sleep and controllers break i need to see when to put the command
BANPOTK
BANPOTKโ€ข3w ago
Kernel Log after woke up from sleep https://paste.centos.org/view/308752be
BANPOTK
BANPOTKโ€ข3w ago
Log after put command https://pastebin.com/fCi7BjKj
Pastebin
MSI Claw kernel log after enter command - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
BANPOTK
BANPOTKโ€ข3w ago
I create script file in /usr/lib/systemd/system-sleep/iwlwifi.sh #!/bin/sh case $1/$2 in pre/) modprobe -r iwlmvm iwlwifi ;; post/) modprobe iwlmvm iwlwifi ;; esac test in Nobara OS,Wifi is work correctly when woke up from sleep but bazzite os /usr isn't writable
antheas
antheasโ€ข3w ago
These scripts can break suspend We are not shipping one again Report bug to kernel
HikariKnight
HikariKnightOPโ€ข3w ago
Even if we use dmi to target the device?
antheas
antheasโ€ข3w ago
no way fix it properly once
HikariKnight
HikariKnightOPโ€ข3w ago
๐Ÿ™
Kyle Gospo
Kyle Gospoโ€ข3w ago
We did this before and it bit us so I think I agree it's best to avoid it This might be a temporary issue anyway I've seen some reports of the newest kernel having bugs like this
antheas
antheasโ€ข3w ago
i think it was on 6.10 too but yeah @BANPOTK is there a kernel even older one like 6.9 or 6.6 that has working wifi?
BANPOTK
BANPOTKโ€ข3w ago
I only encountered the issue of the device freezing, no problem after sleeping. https://community.intel.com/t5/Wireless/iwlwifi-issue-with-Intel-R-Killer-TM-Wi-Fi-7-BE1750-and-Ubuntu/td-p/1587301
iwlwifi - issue with Intel(R) Killer(TM) Wi-Fi 7 BE1750 and Ubuntu
Hello, Recently I changed laptop for work. Built-in with Windows I wanted to install Ubuntu instead. I tried the LTS version (22.04) and the most recent version (23.10). The MSI prestige EVO 16 comes with this config: disk: NVMe SSD Controller PM9A1/PM9A3/980PRO SAMSUNG MZVL21T0HDLU-00BT7 cpu: I...
BANPOTK
BANPOTKโ€ข3w ago
use kernel 6.5.0-28 I found a way to enable Gyro sensor command sudo hhd.contrib hidraw 2 0F00003C2101002901E1000000000000 This command mean set Gyro to Left DPAD mode,Enable and disable by M1 toggle Key In MSI Center M on windows can set mode to Left Dpad,Right Dpad and Mouse mode
antheas
antheasโ€ข3w ago
this gyro is useless, you need command to enable sensor measurements direct
BANPOTK
BANPOTKโ€ข3w ago
No description
BANPOTK
BANPOTKโ€ข3w ago
Gyro in MSI Center M config
HikariKnight
HikariKnightOPโ€ข3w ago
i hope you mean gyro to joystick, gyro to dpad sounds so utterly useless
antheas
antheasโ€ข3w ago
you need a way to read the gyro for example calibration thats what we need this gyro behavior stuff is useless to us
TheSecondKen
TheSecondKenโ€ข3w ago
Funny enough, I have the calibration menu, but not the gyro options menu. The calibration menu doesn't work at all on my device. need to figure out why, then I can poke and see what if any commands the calibration is sending to the HID device. turns out there was new firmware. OK, when running calibration the host sends 0f00003cfd020000 during the gyro calibrate step. in bazzite, how would I test this to see if the gyro starts sending data?
antheas
antheasโ€ข3w ago
Hhd contib hidraw no command
TheSecondKen
TheSecondKenโ€ข3w ago
thanks currently reinstalling bazzite to test the gyro stuff, but i have a bit of a dumb question. I know on the Ally, the fingerprint reader is not supported. that one is a FocalTech, but on the Claw, it has a Goodix MOC that seems to have support in libfprint. is there anything special I would need to do to enable fingerprint reader on bazzite? ran sudo hhd.contrib hidraw 6 then in another terminal i ran sudo hhd.contrib hidraw 6 0f00003cfd020000, and in the first terminal i got 1000003cfe00000000000000000 back. not sure if im doing this right. wasnt getting like a stream of data and moving the device around didn't seem to do anything. ok, so the 3cfe is the calibration acknolwledgement, i need to find the gyro activation command.
antheas
antheasโ€ข3w ago
No, just test it The ally has 2 fingeprint readers One of them has a driver but needs some security stuff and doesn't work And the focaltech has we don't know
TheSecondKen
TheSecondKenโ€ข3w ago
Ah, gotcha. I have the ally X with the focaltech with no Linux support at all. Fixing my dual boot at the moment so I can Wireshark and then switch to bazzite.
antheas
antheasโ€ข3w ago
Due to the security stuff the other one will not work any time soon
BANPOTK
BANPOTKโ€ข3w ago
Pastebin
MSI Claw udevadm - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
BANPOTK
BANPOTKโ€ข3w ago
I found HID device 8087:0AC2 have gyro sensor
BANPOTK
BANPOTKโ€ข3w ago
No description
BANPOTK
BANPOTKโ€ข3w ago
DEVNAME=/dev/hidraw4 but hhd.contrib not see this device I don't know how to read it.
antheas
antheasโ€ข3w ago
Don't read that one You want the one from the controller
BANPOTK
BANPOTKโ€ข3w ago
In Windows OS, the sensor can work immediately without enabling special functions.
antheas
antheasโ€ข3w ago
If the controller has a built in sensor that's the one you want We have not worked with Intel sensor fusion hub But amd sfh on the legion go that is similar was garbage You don't want it
BANPOTK
BANPOTKโ€ข3w ago
It weird because USB Capture program can't capture raw data while sensor is working
TheSecondKen
TheSecondKenโ€ข3w ago
Wireshark on the controller gives me data when the gyro is active, but I'm not seeing commands to activate it so no idea where they're coming from
antheas
antheasโ€ข3w ago
but does it give you data about the gyro or about the gyro applciation e.g. stick or mouse
TheSecondKen
TheSecondKenโ€ข3w ago
I'm not sure, I have to try it again and see what the hid payload is, it might just be the mouse event/joystick event Which is the same behavior I was seeing with the M keys. I could only get hid events when it was sending other keys
antheas
antheasโ€ข3w ago
Try calibration Especially if there is gyro in there
Burn Division
Burn Divisionโ€ข2w ago
I wish I knew about this. I would've been here to help any way I can.
BANPOTK
BANPOTKโ€ข2w ago
I have collected the command code for using the RGB lights of the device, which will have a command setting mode and color pattern selection. Now only the Wave mode remains, which has not been included in this document.
Sรถlve
Sรถlveโ€ข2w ago
Hi. Is there a list of missing functionalities needed for "normal" operation of Bazzite on MSI Claw?
antheas
antheasโ€ข2w ago
Yes Most of them
Sรถlve
Sรถlveโ€ข2w ago
I own this console and, with guidance, I can help with further bug hunting and development. That's exactly why I'm asking about the list of missing functionalities
BANPOTK
BANPOTKโ€ข2w ago
1.Macro Key (back M1 and M2 button) not work 2.Gyro not work. 3.Wifi not work when woke up from sleep. 4.Power LED and CPU fan still work when sleep. 5.TDP control in Quick Access menu not work.
Sรถlve
Sรถlveโ€ข2w ago
Thank you
BANPOTK
BANPOTKโ€ข2w ago
These are all problem I think of. Which model do you have? core ultra 5 or 7
Sรถlve
Sรถlveโ€ข2w ago
Ultra 7
BANPOTK
BANPOTKโ€ข2w ago
same me I created RGB Command code complete
Sรถlve
Sรถlveโ€ข2w ago
Is there any way for me to help with the first point? I've a windows installed right now
TheSecondKen
TheSecondKenโ€ข7d ago
Need to find some way to get the M1/M2 buttons to output some unique event that can be read in bazzite/hhd. I can send the command to switch modes, but I think MSI is doing some weird things with the M Buttons, because even with stock ubuntu, there are no raw events coming off of those buttons.
BANPOTK
BANPOTKโ€ข6d ago
I think we find to get Gyro sensor work, it be better I found patch fix iwlwifi fail after resume https://bugzilla.kernel.org/show_bug.cgi?id=219447 I'm not sure this patch to apply to new kernel I try to add pcie_port_pm=off to GRUB boot options,wifi is work after resume and I try to add iwlmvm.power_scheme=1 pcie_aspm=off pcie_port_pm=off to boot options It's fully sleep (all light is off, cpu fan is off) and resume wifi is work again. but I think iwlmvm.power_scheme=1 is useless,I try to remove it, set only pcie_aspm=off pcie_port_pm=off it still work but if use pcie_aspm=off , nvme drive fail after resume
MitchMavericks
MitchMavericksโ€ข5d ago
hey I'm not a programmer or anything but I wanted to see if anyone has more info on the wifi not working when awake from asleep. I'm on a Ayaneo Next Lite
BANPOTK
BANPOTKโ€ข2d ago
@antheas Have any events function in HHD service that run before and after sleep?
antheas
antheasโ€ข2d ago
Controller is easy fix
Want results from more Discord servers?
Add your server