legacyO7 / Aurora

A utility to control RGB keyboard back-light and charging threshold for Asus TUF-gaming laptops
MIT License
48 stars 3 forks source link

Aurora says I don't have ASUS laptop... #12

Closed senjabl closed 1 year ago

senjabl commented 1 year ago

Hello,

I have ASUS XF505DT Laptop with Manjaro linux and Plasma desktop. When I start Aurora, it says "this ain't ASUS. I have no business there". :-)

To Reproduce Steps to reproduce the behavior: -Start Aurora, -It says "this ain't ASUS. I have no business there". :-)

Expected behavior Application is suppose to start application.

Screenshots Screenshot_20230705_141507-1

Desktop (please complete the following information): Operating System: Manjaro Linux

Additional context Add any other context about the problem here. KDE Plasma Version: 5.27.5 KDE Frameworks Version: 5.106.0 Qt Version: 5.15.9 Kernel Version: 6.3.5-2-MANJARO (64-bit) Graphics Platform: X11 Processors: 8 × AMD Ryzen 5 3550H with Radeon Vega Mobile Gfx Memory: 13,6 GiB of RAM Graphics Processor: AMD Radeon Vega 8 Graphics Manufacturer: ASUSTeK COMPUTER INC. Product Name: TUF Gaming FX505DT_FX505DT System Version: 1.0

Tried with kernels 6.1.31 , 6.2.16 and 6.3.5 Also I tried with appimages aurora-linux-3.1.2-beta and aurora-linux-3.0.0 Also tried with source from github.

Aurora logfile No logs were generated in /tmp/, /var/, /var/log/ ...

legacyO7 commented 1 year ago

please provide the output of cat /sys/devices/virtual/dmi/id/product_name and cat /sys/devices/virtual/dmi/id/sys_vendor

senjabl commented 1 year ago

OK, cat /sys/devices/virtual/dmi/id/product_name TUF Gaming FX505DT_FX505DT

cat /sys/devices/virtual/dmi/id/sys_vendor ASUSTeK COMPUTER INC.

legacyO7 commented 1 year ago

Please run the app from the updated source canary branch and see if it's fixed

senjabl commented 1 year ago

It recognized Laptop beut got stuck on screen with "Grant access"

legacyO7 commented 1 year ago

please provide the terminal log

senjabl commented 1 year ago

ar.log

legacyO7 commented 1 year ago

this happens when the working directory doesn't exist (often happens in debug mode). a fallback directory is added now if the current working directory is invalid

senjabl commented 1 year ago

Hello, sorry for delay. After your latest fixes, application starts. However, it does not change color of RGB keyboard leds. Intensity changing works and battery treshold works. ROG Aura control from Asusd project also do not work.

When I install your fork of Faustus drivers, it works.

legacyO7 commented 1 year ago

Backlight control in distros with kernel 6.1 and above should work without Faustus module. Please provide the log in mainline mode if possible.

senjabl commented 1 year ago

Strange, ar.log is created only if I build application and run it from release/bundle folder. If I run app with flutter run or from debug/bundle folder, it does not create logfile.

ar.log

legacyO7 commented 1 year ago

logfile wont be created if you are running the app from source, instead it just prints the log in terminal. If you wanna change this behaviour, just negate this condition https://github.com/legacyO7/Aurora/blob/ddc56d6714a3570d4bfb1431f5e2fb219c900282/lib/utility/ar_widgets/ar_logger.dart#L47

Seems like it didnt logged any errors in mainline mode. Is aurora stable v2 working in mainline mode? https://github.com/legacyO7/Aurora/blob/5d6266c01fc36fe3c195e3c030e36d0bdce14064/lib/user_interface/home/domain/home_repo_impl.dart#L86C3-L86C3 You can remove this condition to bypass the device compatibility check in the stable branch. Please privide the log of v2 if ibacklight cotrol isn't working in mainline mode. Since it rely on script based control, it might can give more insight

senjabl commented 1 year ago

Hello, I am traveling. Will try when I get back. According to

https://gitlab.com/asus-linux/asusctl/-/issues/349

for certain TUF laptops asus-wmi kernel module need patching to work.

legacyO7 commented 1 year ago

Added option to enforce faustus mode, which will force aurora to run in faustus mode in cases like this. ( Settings > Enforce Faustus )