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
335 Replies
R3ZEN
R3ZENโ€ข5mo ago
It is in desktop mode Only the mouse works with r3 and rt and lt for Zoom in on web
HikariKnight
HikariKnightOPโ€ข5mo ago
what does hhd.contrib evdev show?
R3ZEN
R3ZENโ€ข5mo 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โ€ข5mo ago
its ok windows is more useful
R3ZEN
R3ZENโ€ข5mo ago
How come
antheas
antheasโ€ข5mo ago
if you want to use wireshark
HikariKnight
HikariKnightOPโ€ข5mo ago
ok i will leave you in antheas hands then ๐Ÿ˜„
antheas
antheasโ€ข5mo ago
we need to record the commands for msi center but its a pain so maybe windows it is
R3ZEN
R3ZENโ€ข5mo ago
? ?
HikariKnight
HikariKnightOPโ€ข5mo 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โ€ข5mo 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โ€ข5mo ago
you dont need to dualboot
HikariKnight
HikariKnightOPโ€ข5mo ago
this is fine, it just adds time. it is what happens when working across timezones
antheas
antheasโ€ข5mo ago
just install wireshark with USBPcap then do recordings of MSI Center
R3ZEN
R3ZENโ€ข5mo ago
K I will
antheas
antheasโ€ข5mo ago
or not, is the Claw cheaper in india or sth whats going on with that
R3ZEN
R3ZENโ€ข5mo ago
No I got it from dubai
antheas
antheasโ€ข5mo ago
whats the logic behind buying it
R3ZEN
R3ZENโ€ข5mo 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โ€ข5mo ago
seems like shop owner decided to offload old product
R3ZEN
R3ZENโ€ข5mo ago
It performs really well now Atleast for me it does
antheas
antheasโ€ข5mo ago
its just not worth the money its not bad
HikariKnight
HikariKnightOPโ€ข5mo 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โ€ข5mo 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โ€ข5mo ago
its not bad but the Ally is cheaper
R3ZEN
R3ZENโ€ข5mo ago
Plus I only for it for the mods on some games I already have a ps5
antheas
antheasโ€ข5mo ago
and is faster soooo nobody bought it and we have no support for it
R3ZEN
R3ZENโ€ข5mo ago
Well I can't do anything about it now can i
antheas
antheasโ€ข5mo ago
if you can get some recordings switching between mouse mode and gamepad mode, i can fix that
R3ZEN
R3ZENโ€ข5mo ago
Its good enough for me so I would just have to wilve through it
HikariKnight
HikariKnightOPโ€ข5mo ago
it would be nice to get support for it if possible though ๐Ÿ™‚
antheas
antheasโ€ข5mo ago
i would need a device or someone to to the research for it
R3ZEN
R3ZENโ€ข5mo ago
On windows you mean It's just a click of a button
HikariKnight
HikariKnightOPโ€ข5mo 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โ€ข5mo 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โ€ข5mo 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โ€ข5mo 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โ€ข5mo ago
Thanks You really are friendly people BTW I am Rishik
HikariKnight
HikariKnightOPโ€ข5mo ago
i mostly just go by HK or Hikari, antheas is antheas
R3ZEN
R3ZENโ€ข5mo ago
Nice to meet you Hikari
antheas
antheasโ€ข5mo ago
thats my name except new manufacturer means everything is new we tease luke but he did the heavy lifting for asus
HikariKnight
HikariKnightOPโ€ข5mo 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โ€ข5mo ago
K GN
antheas
antheasโ€ข5mo ago
gn
HikariKnight
HikariKnightOPโ€ข5mo ago
goodnight
R3ZEN
R3ZENโ€ข5mo ago
so just installed all the drivers now what am I supposed to do?
antheas
antheasโ€ข5mo ago
Wireshark recordings
R3ZEN
R3ZENโ€ข5mo 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โ€ข5mo ago
dont sweat it, if you are busy you are busy ๐Ÿ™‚ people have lives (i am busy myself atm too)
R3ZEN
R3ZENโ€ข4mo ago
Hey I installed Wireshark but I don't know how to use it Guys ?
antheas
antheasโ€ข4mo ago
Windows program, just open and make it do its thing
R3ZEN
R3ZENโ€ข4mo ago
I did it shows nothing I don't understand
HikariKnight
HikariKnightOPโ€ข4mo 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โ€ข4mo 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โ€ข4mo ago
Usbpcap needs to be installed
HikariKnight
HikariKnightOPโ€ข4mo ago
it was selected to be installed during wireshark install though?
antheas
antheasโ€ข4mo ago
should be but hey windows
HikariKnight
HikariKnightOPโ€ข4mo 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โ€ข4mo ago
I installed usbpcap and the other optional thing their was to install at the first time Guys ?
HikariKnight
HikariKnightOPโ€ข4mo 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โ€ข4mo 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โ€ข4mo 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โ€ข4mo ago
K will try thanks
HikariKnight
HikariKnightOPโ€ข4mo ago
sorry i cant be of more guidance
TheSecondKen
TheSecondKenโ€ข3mo 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โ€ข3mo 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โ€ข3mo 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โ€ข3mo ago
Ok. I can try that probably tomorrow. And makes sense (re: kernel drivers)
antheas
antheasโ€ข3mo ago
what timezone are you in ie whats tomorrow
TheSecondKen
TheSecondKenโ€ข3mo ago
Oh sorry. EST so Friday
antheas
antheasโ€ข3mo ago
ok, lmk
TheSecondKen
TheSecondKenโ€ข3mo 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โ€ข3mo ago
Send the devices
TheSecondKen
TheSecondKenโ€ข3mo 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โ€ข3mo 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โ€ข3mo 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โ€ข3mo 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โ€ข3mo ago
I think controller mouse events overlap gamepad events, causing the gamepad buttons to not work. https://youtu.be/0i5sccTdtDo
BANPOTK
BANPOTKโ€ข3mo ago
If I can turn off the mouse event commands, I think the gamepad buttons can work as well.
BANPOTK
BANPOTKโ€ข3mo ago
I sent boot log for anyone who can analyze
BANPOTK
BANPOTKโ€ข3mo ago
I try to use command sudo hhd.contrib hidraw X 0f00006036010000 only Page: 0xffa0 it work but not response
No description
antheas
antheasโ€ข3mo ago
youre not expected to see a response try also the xpad driver rule
BANPOTK
BANPOTKโ€ข3mo ago
I already set
No description
BANPOTK
BANPOTKโ€ข3mo ago
HHD service not running
No description
BANPOTK
BANPOTKโ€ข3mo ago
Try to run hhd in CLI output here.
No description
antheas
antheasโ€ข3mo ago
Oh tuned is broken You're missing the xpad rule
BANPOTK
BANPOTKโ€ข3mo ago
How to setup this
antheas
antheasโ€ข3mo ago
. Put " in echo maybe it helps
BANPOTK
BANPOTKโ€ข3mo ago
I try this but same result.
No description
BANPOTK
BANPOTKโ€ข3mo ago
Reboot require?
antheas
antheasโ€ข3mo ago
Rip No
BANPOTK
BANPOTKโ€ข3mo 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โ€ข3mo ago
That's just the xpad rule That I'm giving you as a command
TheSecondKen
TheSecondKenโ€ข3mo 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โ€ข3mo ago
use a good filter to see all of them and do apply as column to see them cleanly
TheSecondKen
TheSecondKenโ€ข3mo 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โ€ข3mo 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โ€ข3mo 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โ€ข3mo 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โ€ข3mo ago
turn on hhd it already has support for those it just didnt run the command
BANPOTK
BANPOTKโ€ข3mo ago
I found a new problem.Wifi lost when wake up from sleep
BANPOTK
BANPOTKโ€ข3mo ago
BANPOTK
BANPOTKโ€ข3mo ago
GitHub
HandheldCompanion/HandheldCompanion/Devices/MSI/ClawA1M.cs at main ...
ControllerService. Contribute to Valkirie/HandheldCompanion development by creating an account on GitHub.
BANPOTK
BANPOTKโ€ข3mo 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โ€ข3mo 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โ€ข3mo ago
AT Translate Set 2 keyboard still appear
antheas
antheasโ€ข3mo ago
its ok just launch hhd
TheSecondKen
TheSecondKenโ€ข3mo 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โ€ข3mo ago
type hhd in terminal or start service by command systemctl start hhd@$(whoami)
TheSecondKen
TheSecondKenโ€ข3mo ago
Interesting. Pretty sure that was one of the things I did. I'll try again tonight.
antheas
antheasโ€ข3mo ago
it will autodetect the controller and fix the buttons if you set it to xinput mode unless i made a mistake
BANPOTK
BANPOTKโ€ข3mo ago
No description
antheas
antheasโ€ข3mo ago
yes thats the built in keyboard you cant get it to dissappear and you want it to have f15 and f16
BANPOTK
BANPOTKโ€ข3mo ago
Is it possible to change F15 and F16 keyboard to another?
antheas
antheasโ€ข3mo ago
hhd reads those just let it be
BANPOTK
BANPOTKโ€ข3mo ago
and Is it possible to map combo key ex. CTRL+2?
antheas
antheasโ€ข3mo ago
can you listen to me tell me the vid and pid of the msi claw i think i have it
BANPOTK
BANPOTKโ€ข3mo ago
how to get vid and pid?
antheas
antheasโ€ข3mo ago
run ujust _hhd-dev i added it
BANPOTK
BANPOTKโ€ข3mo ago
No description
BANPOTK
BANPOTKโ€ข3mo ago
is it complete? still this a long time
antheas
antheasโ€ข3mo ago
Yes it is
BANPOTK
BANPOTKโ€ข3mo ago
No description
BANPOTK
BANPOTKโ€ข3mo ago
I think PID is wrong 1901 not 9101
antheas
antheasโ€ข3mo ago
fixed
BANPOTK
BANPOTKโ€ข3mo ago
already installed what do yo want? and how to get it
antheas
antheasโ€ข3mo ago
does it work?
BANPOTK
BANPOTKโ€ข3mo ago
No description
antheas
antheasโ€ข3mo ago
the front buttons should work now
BANPOTK
BANPOTKโ€ข3mo ago
Log info show QAM Pressed 1 when I pressed Left button
antheas
antheasโ€ข3mo ago
are you sure its the left?
BANPOTK
BANPOTKโ€ข3mo ago
yes i sure Right button is not response
antheas
antheasโ€ข3mo 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โ€ข3mo ago
I detected a left button press left button it press xbox button and A button Is it problem?
TheSecondKen
TheSecondKenโ€ข3mo ago
Does the rumble work? That's the one thing in the test interface that didnt seem to do anything
BANPOTK
BANPOTKโ€ข3mo 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โ€ข3mo ago
Cool. I'll update my HHD when I get home and test it out.
antheas
antheasโ€ข3mo ago
You dont I made it write it
TheSecondKen
TheSecondKenโ€ข3mo 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โ€ข3mo ago
i think you can do it continue to this thread how to run it at boot?
antheas
antheasโ€ข3mo ago
When it releases yes For now you need to run the _hhd-dev command when you revoot
BANPOTK
BANPOTKโ€ข3mo ago
No description
BANPOTK
BANPOTKโ€ข3mo ago
it is running but gamepad mode not work It's still run in mouse and keyboard mode
antheas
antheasโ€ข3mo 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โ€ข3mo ago
Perfect!
BANPOTK
BANPOTKโ€ข3mo ago
No description
BANPOTK
BANPOTKโ€ข3mo ago
It's late at night now at my place. see you again tomorrow
antheas
antheasโ€ข3mo ago
i moved the check hopefully it runs now
TheSecondKen
TheSecondKenโ€ข3mo 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โ€ข3mo ago
I'll get you a better command later today
BANPOTK
BANPOTKโ€ข3mo ago
It's still not working
antheas
antheasโ€ข3mo 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โ€ข3mo ago
No description
BANPOTK
BANPOTKโ€ข3mo ago
program look like work but controller still in mouse mode QAM button work
antheas
antheasโ€ข3mo ago
Ok I'll fix it
BANPOTK
BANPOTKโ€ข3mo ago
No description
BANPOTK
BANPOTKโ€ข3mo ago
No description
BANPOTK
BANPOTKโ€ข3mo 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โ€ข3mo ago
No description
antheas
antheasโ€ข3mo ago
this is @Kyle Gospo handywork
BANPOTK
BANPOTKโ€ข3mo ago
powerprofilectl error,I think tdp.general.profile not found
TheSecondKen
TheSecondKenโ€ข3mo ago
Yeah it's probably not gonna find TDP stuff for Intel cpus
antheas
antheasโ€ข3mo 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โ€ข3mo ago
No description
BANPOTK
BANPOTKโ€ข3mo ago
Not work and have errors
antheas
antheasโ€ข3mo ago
try again
BANPOTK
BANPOTKโ€ข3mo ago
No description
antheas
antheasโ€ข3mo ago
try again
TheSecondKen
TheSecondKenโ€ข3mo 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โ€ข3mo ago
No it will work bow Just run the command and go to gamemode
TheSecondKen
TheSecondKenโ€ข3mo ago
Oh ok, let me try it again
antheas
antheasโ€ข3mo ago
Oh the curl command n9 The ujust one
TheSecondKen
TheSecondKenโ€ข3mo ago
Oh interesting. Now Gamescope says no controllers detected. Nvm. You meant run the ujust command. Yeah it's all working now
BANPOTK
BANPOTKโ€ข2mo ago
I try to use ujust _hhd-dev It's work correctly but macro key on backside are not work
TheSecondKen
TheSecondKenโ€ข2mo 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โ€ข2mo ago
You need to find out how to reprogram them in such a way where they can be seen
TheSecondKen
TheSecondKenโ€ข2mo ago
I'll test out some things today.
antheas
antheasโ€ข2mo ago
Last I heard it wasn't possible tho Which is part of the reason I gave up on the claw
TheSecondKen
TheSecondKenโ€ข2mo 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โ€ข2mo ago
Has to be unique and for bonus points allow chording Can be any button combo
BANPOTK
BANPOTKโ€ข2mo 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โ€ข2mo 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โ€ข2mo 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โ€ข2mo ago
power-profiles-daemon already install in bazzite? I want to use command powerprofilesctl
antheas
antheasโ€ข2mo ago
Yea But that's not tdp Actually not anymore Tuned something Tuned-adm
BANPOTK
BANPOTKโ€ข2mo ago
powerprofilesctl command not found in latest version,volume control still not work both desktop mode and gaming mode
BANPOTK
BANPOTKโ€ข2mo ago
No description
BANPOTK
BANPOTKโ€ข2mo 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โ€ข2mo ago
Schedule should work
BANPOTK
BANPOTKโ€ข2mo 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โ€ข2mo ago
try lavd instead
BANPOTK
BANPOTKโ€ข2mo ago
It's same 'Schedule from sched_text 'scx_lavd' closed with error code 101'
Kyle Gospo
Kyle Gospoโ€ข2mo ago
what build you on/
antheas
antheasโ€ข2mo 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โ€ข2mo 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โ€ข2mo ago
still working on RGB commands. need to work on my wireshark filtering.
BANPOTK
BANPOTKโ€ข2mo ago
I already sent git pull request both hhd and adjustor for fixed volume control not work and fixed tuned-adm error
antheas
antheasโ€ข2mo ago
hi guys
antheas
antheasโ€ข2mo 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โ€ข2mo 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โ€ข2mo 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โ€ข2mo ago
youre drip feeding me those issues do the hwinfo dump and i will try to update the kernel
BANPOTK
BANPOTKโ€ข2mo ago
work in progress
antheas
antheasโ€ข2mo 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โ€ข2mo ago
Claw A1M
antheas
antheasโ€ข2mo 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โ€ข2mo ago
MS-1T41
antheas
antheasโ€ข2mo ago
thank you
BANPOTK
BANPOTKโ€ข2mo ago
I have collected all the information. I will send it to you soon.
antheas
antheasโ€ข2mo ago
thanks
antheas
antheasโ€ข2mo 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โ€ข2mo 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โ€ข2mo 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โ€ข2mo 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โ€ข2mo 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โ€ข2mo 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โ€ข2mo ago
Also the controller does not work after zleep But the kernel patch I made might help
TheSecondKen
TheSecondKenโ€ข2mo ago
Ah. Ok I'll test that too.
antheas
antheasโ€ข2mo 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โ€ข2mo ago
I found a way to control RGB lights.
antheas
antheasโ€ข2mo ago
did the patch in unstable help?
BANPOTK
BANPOTKโ€ข2mo ago
No description
BANPOTK
BANPOTKโ€ข2mo ago
I think to 3 lines to set pattern and color and last line to activate RGB mode
antheas
antheasโ€ข2mo ago
weird pattern
TheSecondKen
TheSecondKenโ€ข2mo 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โ€ข2mo ago
please test sleep when you can
BANPOTK
BANPOTKโ€ข2mo ago
how to use it?
antheas
antheasโ€ข2mo ago
make the device sleep in latest ver see if controller works afterwards
BANPOTK
BANPOTKโ€ข2mo 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โ€ข2mo 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โ€ข2mo ago
did MSI Center and QAM button work before? did this update make it better?
BANPOTK
BANPOTKโ€ข2mo 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โ€ข2mo 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โ€ข2mo ago
Kernel Log after woke up from sleep https://paste.centos.org/view/308752be
BANPOTK
BANPOTKโ€ข2mo 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โ€ข2mo 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โ€ข2mo ago
These scripts can break suspend We are not shipping one again Report bug to kernel
HikariKnight
HikariKnightOPโ€ข2mo ago
Even if we use dmi to target the device?
antheas
antheasโ€ข2mo ago
no way fix it properly once
HikariKnight
HikariKnightOPโ€ข2mo ago
๐Ÿ™
Kyle Gospo
Kyle Gospoโ€ข2mo 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โ€ข2mo 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โ€ข2mo 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โ€ข2mo 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โ€ข2mo ago
this gyro is useless, you need command to enable sensor measurements direct
BANPOTK
BANPOTKโ€ข2mo ago
No description
BANPOTK
BANPOTKโ€ข2mo ago
Gyro in MSI Center M config
HikariKnight
HikariKnightOPโ€ข2mo ago
i hope you mean gyro to joystick, gyro to dpad sounds so utterly useless
antheas
antheasโ€ข2mo 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โ€ข2mo 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โ€ข2mo ago
Hhd contib hidraw no command
TheSecondKen
TheSecondKenโ€ข2mo 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โ€ข2mo 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โ€ข2mo 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โ€ข2mo ago
Due to the security stuff the other one will not work any time soon
BANPOTK
BANPOTKโ€ข2mo 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โ€ข2mo ago
I found HID device 8087:0AC2 have gyro sensor
BANPOTK
BANPOTKโ€ข2mo ago
No description
BANPOTK
BANPOTKโ€ข2mo ago
DEVNAME=/dev/hidraw4 but hhd.contrib not see this device I don't know how to read it.
antheas
antheasโ€ข2mo ago
Don't read that one You want the one from the controller
BANPOTK
BANPOTKโ€ข2mo ago
In Windows OS, the sensor can work immediately without enabling special functions.
antheas
antheasโ€ข2mo 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โ€ข2mo ago
It weird because USB Capture program can't capture raw data while sensor is working
TheSecondKen
TheSecondKenโ€ข2mo 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โ€ข2mo ago
but does it give you data about the gyro or about the gyro applciation e.g. stick or mouse
TheSecondKen
TheSecondKenโ€ข2mo 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โ€ข2mo ago
Try calibration Especially if there is gyro in there
Burn Division
Burn Divisionโ€ข2mo ago
I wish I knew about this. I would've been here to help any way I can.
BANPOTK
BANPOTKโ€ข2mo 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โ€ข2mo ago
Hi. Is there a list of missing functionalities needed for "normal" operation of Bazzite on MSI Claw?
antheas
antheasโ€ข2mo ago
Yes Most of them
Sรถlve
Sรถlveโ€ข2mo 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โ€ข2mo 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โ€ข2mo ago
Thank you
BANPOTK
BANPOTKโ€ข2mo ago
These are all problem I think of. Which model do you have? core ultra 5 or 7
Sรถlve
Sรถlveโ€ข2mo ago
Ultra 7
BANPOTK
BANPOTKโ€ข2mo ago
same me I created RGB Command code complete
Sรถlve
Sรถlveโ€ข2mo ago
Is there any way for me to help with the first point? I've a windows installed right now
TheSecondKen
TheSecondKenโ€ข2mo 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โ€ข2mo 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โ€ข2mo 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โ€ข2mo ago
@antheas Have any events function in HHD service that run before and after sleep?
antheas
antheasโ€ข2mo ago
Controller is easy fix
BANPOTK
BANPOTKโ€ข2mo ago
How to fix this
BANPOTK
BANPOTKโ€ข5w ago
Is there a problem with this pull request?
No description
BANPOTK
BANPOTKโ€ข5w ago
This pull request has not been accepted yet.
antheas
antheasโ€ข4w ago
so, after sleep claw controlelr does not work?
BANPOTK
BANPOTKโ€ข4w ago
it return to desktop mode not gamepad mode I think it not have memory to save current config not same RGB light
Trazire
Trazireโ€ข4w ago
sorry for noob question, if i want to use bazzite and install this? what should i do? do this work out of the box on bazzite on claw? also aside from after sleep the controller back to desktop mode, and rgb, is all the function work normally on linux? last discussion on other linux os seem like intel gpu driver is suck on linux so the performance is worse than windows
antheas
antheasโ€ข4w ago
no rgb does not work tdp controls dont work
Trazire
Trazireโ€ข4w ago
i see, i dont really care rgb, but tdp is important. thanks for the clarification
BANPOTK
BANPOTKโ€ข3w ago
RGB light will work in progress how to read hid response? I want to send 0F00003C26010000 to check controller status
antheas
antheasโ€ข3w ago
you need get request id or set to 0 then hhd.contrib hidraw <num> set:0F00003C26010000 get:0F or not 0F
BANPOTK
BANPOTKโ€ข3w ago
command check -> 0F00003C26000000 return -> 1000003C2701000000 I capture from Windows
antheas
antheasโ€ข3w ago
what does the return mean?
BANPOTK
BANPOTKโ€ข3w ago
I think 100003C = header 27 = GamepadModeAck 01 = Mode (01 = Xinput) I try to input command sudo hhd.contrib hidraw 2 set:0F00003C26000000 get:1000003C It return error ioctl (SFEATURE) Broken Pipe
antheas
antheasโ€ข3w ago
maybe it restart
BANPOTK
BANPOTKโ€ข3w ago
No description
antheas
antheasโ€ข3w ago
very often when you change the mode of the controller, controller restart so it breaks the pipe
BANPOTK
BANPOTKโ€ข3w ago
I found a new problem. when I press screenshot in gaming mode (Guide button + RT), gaming mode screen is rebooted
antheas
antheasโ€ข3w ago
funny intel bug
BANPOTK
BANPOTKโ€ข3w ago
intel arc sucks
mrguvnah
mrguvnahโ€ข3w ago
Hey, which file do you add those lines to resume wifi?
BANPOTK
BANPOTKโ€ข2w ago
use command sudo rpm-ostree kargs --append-if-missing=pcie_port_pm=off
mrguvnah
mrguvnahโ€ข2w ago
It works now, thanks ๐Ÿ‘๐Ÿ‘๐Ÿ‘
BANPOTK
BANPOTKโ€ข2w ago
but after resume, controller not work to xinput (work in mouse mode)
mrguvnah
mrguvnahโ€ข2w ago
You have to hold down the menu button a few seconds to reactivate xinput
BANPOTK
BANPOTKโ€ข2w ago
I found a little bug in adjustor module
No description
Interpreter
Interpreterโ€ข2w ago
Hello, guys. Just found this brunch. Is Bazzite is usable at MSI Claw 135H now?
HikariKnight
HikariKnightOPโ€ข2w ago
Basic controls work on OG claw only Controls and wifi breaks after sleep No gyro or back buttons support No tdp control
BANPOTK
BANPOTKโ€ข2w ago
You can install it, but some features still won't work,such as: Fully Sleep,RGB,Gyro sensor and Back button
antheas
antheasโ€ข2w ago
Bruh Didnt you PR a change for that?
BANPOTK
BANPOTKโ€ข2w ago
The bugs found have been fixed.
No description
BANPOTK
BANPOTKโ€ข2w ago
I will create PR soon.
v3nomEd
v3nomEdโ€ข2w ago
Hi, is it feasible to install the system. Will it have equal or better graphic and battery performance than Windows?
TheSecondKen
TheSecondKenโ€ข2w ago
I'm curious if MSI made the same control decisions with the new claw models. Waiting until closer to the end of the year to order, but I'll end up doing some testing there too.
v3nomEd
v3nomEdโ€ข2w ago
Got it, is there another Linux base os working on the Claw?
HikariKnight
HikariKnightOPโ€ข2w ago
dont know
TheSecondKen
TheSecondKenโ€ข2w ago
I've booted Ubuntu, but unless you can send the hid commands to the controller, it won't switch to XInput The Linux Xe/i915 driver changes are usually released alongside the kernel
antheas
antheasโ€ข2w ago
Hhd can send them
TheSecondKen
TheSecondKenโ€ข2w ago
Right. So if you're installing a non bazzite OS you need HHD to send those commands
antheas
antheasโ€ข2w ago
I mean hhd does it on bazzite too
TheSecondKen
TheSecondKenโ€ข2w ago
Right. I know.theyre asking about other OSes
antheas
antheasโ€ข2w ago
No there is a hid kernel driver that's getting developed But it's kind of stuck
Burn Division
Burn Divisionโ€ข9h ago
Oh boy. why is it stuck?
antheas
antheasโ€ข9h ago
people dont care that much? have some good news for everyone steamos imported the kernel xpad patch for the MSI claw however, given that they merged one for the ally in july, i dont want to get your hopes up the new claw looks nice, lets see how that goes they will probably reuse the firmware so if that gets added og claw will work if we add support for that
TheSecondKen
TheSecondKenโ€ข9h ago
I have the 8 on order, I'm guessing that most things will carry over.
Burn Division
Burn Divisionโ€ข9h ago
Sadly understandable
TheSecondKen
TheSecondKenโ€ข9h ago
On a related note, there are some pending patches for lunar lake performance/quirks in newer kernels. Something about monitor calls.
Want results from more Discord servers?
Add your server