Razer-Linux / razer-laptop-control-no-dkms

GNU General Public License v2.0
93 stars 30 forks source link

[BUG] Deamon failing to start #63

Open Cloudyrl opened 3 months ago

Cloudyrl commented 3 months ago

Daemon status log

razercontrol.service - Razer laptop control daemon
     Loaded: loaded (/etc/systemd/system/razercontrol.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Wed 2024-04-24 09:45:13 -04; 1h 32min ago
    Process: 1204 ExecStart=/usr/share/razercontrol/daemon (code=exited, status=101)
   Main PID: 1204 (code=exited, status=101)
        CPU: 3ms

abr 24 09:45:13 cloudy systemd[1]: Started Razer laptop control daemon.
abr 24 09:45:13 cloudy daemon[1204]: suported devices found: 35
abr 24 09:45:13 cloudy daemon[1204]: thread 'main' panicked at src/config.rs:62:55:
abr 24 09:45:13 cloudy daemon[1204]: called `Result::unwrap()` on an `Err` value: NotPresent
abr 24 09:45:13 cloudy daemon[1204]: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
abr 24 09:45:13 cloudy systemd[1]: razercontrol.service: Main process exited, code=exited, status=101/n/a
abr 24 09:45:13 cloudy systemd[1]: razercontrol.service: Failed with result 'exit-code'.

Describe the bug The daemon is failing to start

Hey guys, any idea of what's happening with my installation? My laptop is the razer 14 rtx3070 2021 model

phush0 commented 3 months ago

Probably your device is not supported

Cloudyrl commented 3 months ago

@phush0 Is it possible to add support? now reading other threads here is the lsusb for my model. Thanks!

Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 13d3:56d5 IMC Networks Integrated Camera
Bus 003 Device 002: ID 1532:007b Razer USA, Ltd RC30-0305 Gaming Mouse Dongle [Viper Ultimate (Wireless)]
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 1532:0270 Razer USA, Ltd Razer Blade
Bus 001 Device 002: ID 8087:0032 Intel Corp. AX210 Bluetooth
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
phush0 commented 3 months ago

Sure, tomorrow will add it

JosuGZ commented 1 month ago

I see the device present on the laptops.json file:

    {
        "name": "Blade 14 2021",
        "vid": "1532",
        "pid": "0270",
        "features": [],
        "fan": [3500, 5000]
    },

Aparently it is crashing on

let str = fs::read_to_string(env::var("HOME").unwrap() + SETTINGS_FILE)?;

Can you tell us what echo $HOME prints on your terminal? Also, which OS are you using? I suspect you are not using systemd, or perhaps you have not installed the program with install.sh, is that the case?

olafkfreund commented 1 month ago

First and foremost: Thanks for this! You are awesome !! Could You please add support for: Blade 15 Advanced Model (Early 2021) - RZ09-036. Thanks. BTW: Love that you have a flake.nix for this. Make this some much easier.