Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

installation guide for debian based systems #56

Open
DeepAlex1247 opened this issue Dec 25, 2020 · 71 comments
Open

installation guide for debian based systems #56

DeepAlex1247 opened this issue Dec 25, 2020 · 71 comments

Comments

@DeepAlex1247
Copy link

Hey guys,

I am really interested in this tool, but I am using Pop Os, which is debian based. I have not really much knowledge about how to built something like this from scratch, so help would be appreciated.

I guess it would make this project much more appreciated by all Linux users, if something like this would exist.

@gorghino
Copy link

gorghino commented Dec 30, 2020

I recently compiled razer-cli on my Razer Blade Advanced (Early 2020) on PopOS 20.10
Start cloning the repository:
git clone https://github.com/rnd-ash/razer-laptop-control.git

then compile the drivers:

 cd razer-laptop-control/driver/
 sudo make driver_dkms  
 sudo dkms add -m razercontrol -v 1.3.0  
 sudo dkms build -m razercontrol -v 1.3.0  
 sudo dkms install -m razercontrol -v 1.3.0  
 sudo update-initramfs -u
 sudo reboot

Then compile razer_control_gui

 cd ..  
 cd razer_control_gui/
 ./install.sh

Reboot and you should have the deamon running:

gorgo@pop-os:~$ sudo systemctl status razerdaemon.service -l
● razerdaemon.service - Razer laptop control daemon
     Loaded: loaded (/etc/systemd/system/razerdaemon.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2020-12-30 19:15:34 CET; 57min ago
   Main PID: 799 (daemon)
      Tasks: 3 (limit: 18928)
     Memory: 3.3M
     CGroup: /system.slice/razerdaemon.service
             └─799 /usr/share/razercontrol/daemon

dic 30 19:15:34 pop-os systemd[1]: Started Razer laptop control daemon.
dic 30 19:15:34 pop-os daemon[799]: Sysfs ready! Starting daemon
dic 30 19:15:34 pop-os daemon[799]: No effects save, creating a new one
dic 30 19:15:34 pop-os daemon[799]: Power source changed! Now AC
dic 30 19:17:25 pop-os daemon[799]: REQ: GetFanSpeed
dic 30 19:17:38 pop-os daemon[799]: REQ: GetPwrLevel
dic 30 19:21:57 pop-os daemon[799]: REQ: SetPowerMode { pwr: 1, cpu: 0, gpu: 0 }
dic 30 19:21:57 pop-os daemon[799]: REQ: GetPwrLevel
dic 30 19:22:38 pop-os daemon[799]: REQ: SetPowerMode { pwr: 0, cpu: 0, gpu: 0 }
dic 30 19:22:38 pop-os daemon[799]: REQ: GetPwrLevel

and the kernel module loaded:

gorgo@pop-os:~$ lsmod | grep razer
razercontrol           24576  0
hid                   135168  7 i2c_hid,usbhid,hid_multitouch,hid_generic,hid_logitech_dj,hid_logitech_hidpp,razercontrol

@DeepAlex1247
Copy link
Author

Thanks a lot for this detailed instruction:
I followed your stps and get the following error:

(base) alex@pop-os:~$ sudo systemctl status razerdaemon.service -l
[sudo] password for alex: 
● razerdaemon.service - Razer laptop control daemon
     Loaded: loaded (/etc/systemd/system/razerdaemon.service; enabled; vendor preset: enable>
     Active: failed (Result: exit-code) since Fri 2021-01-01 21:30:50 CET; 37s ago
    Process: 1003 ExecStart=/usr/share/razercontrol/daemon (code=exited, status=203/EXEC)
   Main PID: 1003 (code=exited, status=203/EXEC)

Jan 01 21:30:50 pop-os systemd[1]: Started Razer laptop control daemon.
Jan 01 21:30:50 pop-os systemd[1003]: razerdaemon.service: Failed to execute command: No suc>
Jan 01 21:30:50 pop-os systemd[1003]: razerdaemon.service: Failed at step EXEC spawning /usr>
Jan 01 21:30:50 pop-os systemd[1]: razerdaemon.service: Main process exited, code=exited, st>
Jan 01 21:30:50 pop-os systemd[1]: razerdaemon.service: Failed with result 'exit-code'.

you have any idea what went wrong?

@gorghino
Copy link

gorghino commented Jan 2, 2021

journalctl -u razerdaemon.service
EDIT: @DeepAlex1247 try
sudo systemctl status razerdaemon.service -l --full

Check what's missing here:
Jan 01 21:30:50 pop-os systemd[1003]: razerdaemon.service: Failed to execute command: No suc>
I guess it's saying "no such file or directory" but dunno what.

@AlexVaith
Copy link

i think I found out that it is not working with the openrazer package. there are conflicts between both packages.

@DeepAlex1247
Copy link
Author

Tried to follow your steps again giving each line a little bit more attention.
During ./install.sh I get the following error:

cp: cannot stat 'target/release/razer-cli': No such file or directory
cp: cannot stat 'target/release/daemon': No such file or directory

However it says Install complete.

Any ideas @gorghino ?

@DeepAlex1247
Copy link
Author

@gorghino the error code you were poiting out at is indeed teeling that the deamon file is missing.

@gorghino
Copy link

gorghino commented Jan 10, 2021

Did you install cargo ?
Any errors in the first code block I posted in my first reply? I added a reboot after update-initramfs, but I guess you already rebooted since then.
Can you paste your ./install.sh output?

@DeepAlex1247
Copy link
Author

DeepAlex1247 commented Jan 15, 2021

@gorghino the install.sh script did work this time. however after reboot I got the following output:

(base) alex@pop-os:~$ sudo systemctl status razerdaemon.service -l --full
● razerdaemon.service - Razer laptop control daemon
     Loaded: loaded (/etc/systemd/system/razerdaemon.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Fri 2021-01-15 21:47:53 CET; 1min 16s ago
    Process: 1179 ExecStart=/usr/share/razercontrol/daemon (code=exited, status=1/FAILURE)
   Main PID: 1179 (code=exited, status=1/FAILURE)

Jan 15 21:47:46 pop-os daemon[1179]: Waiting for sysfs to be ready
Jan 15 21:47:47 pop-os daemon[1179]: Waiting for sysfs to be ready
Jan 15 21:47:48 pop-os daemon[1179]: Waiting for sysfs to be ready
Jan 15 21:47:49 pop-os daemon[1179]: Waiting for sysfs to be ready
Jan 15 21:47:50 pop-os daemon[1179]: Waiting for sysfs to be ready
Jan 15 21:47:51 pop-os daemon[1179]: Waiting for sysfs to be ready
Jan 15 21:47:52 pop-os daemon[1179]: Waiting for sysfs to be ready
Jan 15 21:47:53 pop-os daemon[1179]: Timed out waiting for sysfs after a minute!
Jan 15 21:47:53 pop-os systemd[1]: razerdaemon.service: Main process exited, code=exited, status=1/FAILURE
Jan 15 21:47:53 pop-os systemd[1]: razerdaemon.service: Failed with result 'exit-code'.

can you help me out again.

to get it to this point I also installed cargo and I indeed forgott to reboot after the dkms commands and the gui install

this is the other output ... razer control is missing in the kernel.

(base) alex@pop-os:~$ lsmod | grep razer
razerkbd               73728  0
hid                   135168  8 i2c_hid,usbhid,hid_multitouch,hid_sony,razerkbd,hid_generic,hid_logitech_dj,hid_logitech_hidpp

@gorghino
Copy link

Can you paste the output from the first block of commands I told you? ( cd razer-laptop-c.... to update-initramfs -u)
It seems the razercontrol module is not installed properly.

@DeepAlex1247
Copy link
Author

(base) alex@pop-os:~$ cd razer-laptop-control/driver/
(base) alex@pop-os:~/razer-laptop-control/driver$ sudo make driver_dkms
Installing kernel modules for DKMS
install -m 644 -v -D Makefile //usr/src/razercontrol-1.3.0/Makefile
removed '//usr/src/razercontrol-1.3.0/Makefile'
'Makefile' -> '//usr/src/razercontrol-1.3.0/Makefile'
install -m 644 -v -D dkms.conf //usr/src/razercontrol-1.3.0/dkms.conf
removed '//usr/src/razercontrol-1.3.0/dkms.conf'
'dkms.conf' -> '//usr/src/razercontrol-1.3.0/dkms.conf'
install -m 755 -v -d src //usr/src/razercontrol-1.3.0/src
install -m 644 -v -D src/*.c //usr/src/razercontrol-1.3.0/src/
removed '//usr/src/razercontrol-1.3.0/src/chroma.c'
'src/chroma.c' -> '//usr/src/razercontrol-1.3.0/src/chroma.c'
removed '//usr/src/razercontrol-1.3.0/src/core.c'
'src/core.c' -> '//usr/src/razercontrol-1.3.0/src/core.c'
removed '//usr/src/razercontrol-1.3.0/src/fancontrol.c'
'src/fancontrol.c' -> '//usr/src/razercontrol-1.3.0/src/fancontrol.c'
removed '//usr/src/razercontrol-1.3.0/src/razer_common.c'
'src/razer_common.c' -> '//usr/src/razercontrol-1.3.0/src/razer_common.c'
install -m 644 -v -D src/*.h //usr/src/razercontrol-1.3.0/src/
removed '//usr/src/razercontrol-1.3.0/src/chroma.h'
'src/chroma.h' -> '//usr/src/razercontrol-1.3.0/src/chroma.h'
removed '//usr/src/razercontrol-1.3.0/src/core.h'
'src/core.h' -> '//usr/src/razercontrol-1.3.0/src/core.h'
removed '//usr/src/razercontrol-1.3.0/src/defines.h'
'src/defines.h' -> '//usr/src/razercontrol-1.3.0/src/defines.h'
removed '//usr/src/razercontrol-1.3.0/src/fancontrol.h'
'src/fancontrol.h' -> '//usr/src/razercontrol-1.3.0/src/fancontrol.h'
install -m 644 -v -D src/Makefile //usr/src/razercontrol-1.3.0/src/
removed '//usr/src/razercontrol-1.3.0/src/Makefile'
'src/Makefile' -> '//usr/src/razercontrol-1.3.0/src/Makefile'
rm -rf //usr/src/razercontrol-1.3.0/src/*.mod.c

@DeepAlex1247
Copy link
Author

(base) alex@pop-os:~/razer-laptop-control/driver$ sudo dkms add -m razercontrol -v 1.3.0

Creating symlink /var/lib/dkms/razercontrol/1.3.0/source ->
                 /usr/src/razercontrol-1.3.0

DKMS: add completed.
(base) alex@pop-os:~/razer-laptop-control/driver$ sudo dkms build -m razercontrol -v 1.3.0

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
KERNELDIR=/lib/modules/5.8.0-7630-generic/build make driver...
cleaning build area...

DKMS: build completed.
(base) alex@pop-os:~/razer-laptop-control/driver$ sudo dkms install -m razercontrol -v 1.3.0

razercontrol.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.8.0-7630-generic/kernel/drivers/hid/

depmod...

DKMS: install completed.
(base) alex@pop-os:~/razer-laptop-control/driver$ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-5.8.0-7630-generic
cryptsetup: WARNING: Resume target cryptswap uses a key file
kernelstub.Config    : INFO     Looking for configuration...
kernelstub           : INFO     System information: 

    OS:..................Pop!_OS 20.04
    Root partition:....../dev/nvme0n1p3
    Root FS UUID:........a2528f2a-d0ca-4a0a-8856-05d4b96c3a4b
    ESP Path:............/boot/efi
    ESP Partition:......./dev/nvme0n1p1
    ESP Partition #:.....1
    NVRAM entry #:.......-1
    Boot Variable #:.....0000
    Kernel Boot Options:.loglevel=0 splash systemd.show_status=false mem_sleep_default=deep rcutree.rce_idle_gp_delay=1 button.lid_init_state=open
    Kernel Image Path:.../boot/vmlinuz-5.8.0-7630-generic
    Initrd Image Path:.../boot/initrd.img-5.8.0-7630-generic
    Force-overwrite:.....False

kernelstub.Installer : INFO     Copying Kernel into ESP
kernelstub.Installer : INFO     Copying initrd.img into ESP
kernelstub.Installer : INFO     Setting up loader.conf configuration
kernelstub.Installer : INFO     Making entry file for Pop!_OS
kernelstub.Installer : INFO     Backing up old kernel
kernelstub.Installer : INFO     Making entry file for Pop!_OS

@gorghino
Copy link

The modules seems installed now. Reboot and retry to check the razerdaemon.service status.

@DeepAlex1247
Copy link
Author

nop, still the same outcome after reboot.

can it have something to do with the fact that I can only boot into pop os via the boot menu because I have a dual boot with windows. I really do not have much knowledge, but maybe this leads to the installation not be finished during rebooting???

@gorghino
Copy link

I have dual boot with Win10 too and it used to work either with grub or systemd-boot.
Are you sure you're selecting the right kernel on the boot menu? The 5.8.0-7630-generic. I guess so since It's the latest kernel and it's same as mine.

lsmod | grep razer still doesn't show razercontrol?

What's the output of sudo dmesg | grep razer ?
Did you try reinstalling razer_control_gui/ with install.sh now? What's its output?

@DeepAlex1247
Copy link
Author

(base) alex@pop-os:~$ lsmod | grep razer
razerkbd               73728  0
hid                   135168  8 i2c_hid,usbhid,hid_multitouch,hid_sony,razerkbd,hid_generic,hid_logitech_dj,hid_logitech_hidpp
(base) alex@pop-os:~$ sudo dmesg | grep razer
[    3.503772] razerkbd: loading out-of-tree module taints kernel.
[    3.503893] razerkbd: module verification failed: signature and/or required key missing - tainting kernel
[    3.639292] razerkbd 0003:1532:024D.0003: input,hidraw1: USB HID v1.11 Keyboard [Razer Razer Blade] on usb-0000:00:14.0-8/input0
[    3.979270] razerkbd 0003:1532:024D.0004: input,hidraw2: USB HID v1.11 Keyboard [Razer Razer Blade] on usb-0000:00:14.0-8/input1
[    4.027966] razerkbd 0003:1532:024D.0005: input,hidraw3: USB HID v1.11 Mouse [Razer Razer Blade] on usb-0000:00:14.0-8/input2

@DeepAlex1247
Copy link
Author

(base) alex@pop-os:~/razer-laptop-control/razer_control_gui$ ./install.sh 
    Updating crates.io index
   Compiling libc v0.2.82
   Compiling autocfg v1.0.1
   Compiling proc-macro2 v1.0.24
   Compiling unicode-xid v0.2.1
   Compiling ryu v1.0.5
   Compiling syn v1.0.58
   Compiling bitflags v1.2.1
   Compiling serde_derive v1.0.119
   Compiling radium v0.5.3
   Compiling getrandom v0.1.16
   Compiling lexical-core v0.7.4
   Compiling version_check v0.9.2
   Compiling memchr v2.3.4
   Compiling cfg-if v1.0.0
   Compiling serde v1.0.119
   Compiling cfg-if v0.1.10
   Compiling funty v1.1.0
   Compiling static_assertions v1.1.0
   Compiling tap v1.0.0
   Compiling wyz v0.2.0
   Compiling arrayvec v0.5.2
   Compiling ppv-lite86 v0.2.10
   Compiling serde_json v1.0.61
   Compiling bytesize v1.0.1
   Compiling lazy_static v1.4.0
   Compiling itoa v0.4.7
   Compiling byteorder v1.4.2
   Compiling bitvec v0.19.4
   Compiling quote v1.0.8
   Compiling nom v6.0.1
   Compiling num-traits v0.2.14
   Compiling num-integer v0.1.44
   Compiling time v0.1.44
   Compiling signal-hook-registry v1.3.0
   Compiling signal-hook v0.1.17
   Compiling rand_core v0.5.1
   Compiling rand_chacha v0.2.2
   Compiling rand v0.7.3
   Compiling chrono v0.4.19
   Compiling systemstat v0.1.6
   Compiling bincode v1.3.1
   Compiling service v0.1.0 (/home/alex/razer-laptop-control/razer_control_gui)
warning: unused import: `std::io::prelude::*`
 --> src/daemon.rs:8:5
  |
8 | use std::io::prelude::*;
  |     ^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

warning: function is never used: `create`
  --> src/comms.rs:45:8
   |
45 | pub fn create() -> Option<UnixListener> {
   |        ^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: function is never used: `read_from_socket_req`
  --> src/comms.rs:97:8
   |
97 | pub fn read_from_socket_req(bytes: &[u8]) -> Option<DaemonCommand> {
   |        ^^^^^^^^^^^^^^^^^^^^

warning: unreachable pattern
   --> src/daemon.rs:195:9
    |
195 |         _ => {
    |         ^
    |
    = note: `#[warn(unreachable_patterns)]` on by default

warning: variable does not need to be mutable
  --> src/kbd/mod.rs:84:18
   |
84 |     fn from_save(mut json: serde_json::Value) -> Option<EffectLayer> {
   |                  ----^^^^
   |                  |
   |                  help: remove this `mut`
   |
   = note: `#[warn(unused_mut)]` on by default

warning: function is never used: `bind`
  --> src/comms.rs:37:8
   |
37 | pub fn bind() -> Option<UnixStream> {
   |        ^^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: function is never used: `send_to_daemon`
  --> src/comms.rs:62:8
   |
62 | pub fn send_to_daemon(command: DaemonCommand, mut sock: UnixStream) -> Option<DaemonResponse> {
   |        ^^^^^^^^^^^^^^

warning: function is never used: `read_from_socked_resp`
  --> src/comms.rs:82:4
   |
82 | fn read_from_socked_resp(bytes: &[u8]) -> Option<DaemonResponse> {
   |    ^^^^^^^^^^^^^^^^^^^^^

warning: function is never used: `read_brightness`
  --> src/driver_sysfs.rs:69:8
   |
69 | pub fn read_brightness() -> u8 {
   |        ^^^^^^^^^^^^^^^

warning: method is never used: `set_brightness`
   --> src/kbd/board.rs:198:5
    |
198 |     pub fn set_brightness(&mut self, val: u8) -> bool {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: method is never used: `get_brightness`
   --> src/kbd/board.rs:202:5
    |
202 |     pub fn get_brightness(&mut self) -> u8 {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: method is never used: `set_key_colour`
   --> src/kbd/board.rs:212:5
    |
212 |     pub fn set_key_colour(&mut self, row: usize, col: usize, r: u8, g: u8, b: u8) {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: method is never used: `set_row_colour`
   --> src/kbd/board.rs:223:5
    |
223 |     pub fn set_row_colour(&mut self, row: usize, r: u8, g: u8, b: u8) {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: method is never used: `get_mask`
   --> src/kbd/mod.rs:120:5
    |
120 |     pub fn get_mask(&mut self) -> Vec<bool> {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: function is never used: `push_effect`
  --> src/daemon.rs:24:4
   |
24 | fn push_effect(effect: Box<dyn Effect>, mask: [bool; 90]) {
   |    ^^^^^^^^^^^

    Finished release [optimized] target(s) in 28.32s
Install complete!

@gorghino
Copy link

gorghino commented Jan 15, 2021

Apparently it's activating openrazer's module (razerkbd) instead of razercontrol 🤔
Did you already purge it? (sudo apt purge openrazer* )

Try locate razerkbd.ko (You may need to install mlocate package first)

Try also dkms status

@DeepAlex1247
Copy link
Author

(base) alex@pop-os:~$ locate razerkbd.ko
/usr/lib/modules/5.8.0-7625-generic/kernel/drivers/hid/razerkbd.ko
/usr/lib/modules/5.8.0-7630-generic/kernel/drivers/hid/razerkbd.ko
/var/lib/dkms/openrazer-driver/2.9.0/5.8.0-7625-generic/x86_64/module/razerkbd.ko
/var/lib/dkms/openrazer-driver/2.9.0/5.8.0-7630-generic/x86_64/module/razerkbd.ko

@DeepAlex1247
Copy link
Author

DeepAlex1247 commented Jan 15, 2021

dkms status
backport-iwlwifi, 8324, 5.8.0-7630-generic, x86_64: installed (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!)
nvidia, 460.32.03, 5.8.0-7630-generic, x86_64: installed
openrazer-driver, 2.9.0, 5.8.0-7625-generic, x86_64: installed
openrazer-driver, 2.9.0, 5.8.0-7630-generic, x86_64: installed
razercontrol, 1.3.0, 5.8.0-7630-generic, x86_64: installed
system76, 1.0.11~1606243918~20.04~0ca551b, 5.8.0-7630-generic, x86_64: installed
system76_acpi, 1.0.2~1600812457~20.04~0bc966c, 5.8.0-7625-generic, x86_64: installed
system76_acpi, 1.0.2~1600812457~20.04~0bc966c, 5.8.0-7630-generic, x86_64: installed
system76-io, 1.0.1~1559663713~20.04~ea5f61a, 5.8.0-7625-generic, x86_64: installed
system76-io, 1.0.1~1559663713~20.04~ea5f61a, 5.8.0-7630-generic, x86_64: installed

@gorghino
Copy link

Does purge openrazer* do something?
Plus, I'll try with
dkms uninstall -k 5.8.0-7625-generic openrazer-driver
and
dkms uninstall -k 5.8.0-7630-generic openrazer-driver

Then be sure to load the 5.8.0-7630-generic kernel on boot and not the older 7625.
Try uname -a to check it

@DeepAlex1247
Copy link
Author

i do not know what to do more. i purged everything from openrazer. then completely reinstalled razercontrol and ist still throws the same error

@gorghino
Copy link

Show me the output of the 3 commands I asked above please :)

@DeepAlex1247
Copy link
Author

(base) alex@pop-os:~/razer-laptop-control/razer_control_gui$ apt list --installed | grep razer

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

(base) alex@pop-os:~/razer-laptop-control/razer_control_gui$

@DeepAlex1247
Copy link
Author

(base) alex@pop-os:~/razer-laptop-control/razer_control_gui$ dkms status
backport-iwlwifi, 8324, 5.8.0-7630-generic, x86_64: installed (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!)
nvidia, 460.32.03, 5.8.0-7630-generic, x86_64: installed
razercontrol, 1.3.0, 5.8.0-7630-generic, x86_64: installed
system76, 1.0.11~1606243918~20.04~0ca551b, 5.8.0-7630-generic, x86_64: installed
system76_acpi, 1.0.2~1600812457~20.04~0bc966c, 5.8.0-7625-generic, x86_64: installed
system76_acpi, 1.0.2~1600812457~20.04~0bc966c, 5.8.0-7630-generic, x86_64: installed
system76-io, 1.0.1~1559663713~20.04~ea5f61a, 5.8.0-7625-generic, x86_64: installed
system76-io, 1.0.1~1559663713~20.04~ea5f61a, 5.8.0-7630-generic, x86_64: installed

@gorghino
Copy link

Ok you uninstall correctly openrazer. Now check if you're running the kernel 5.8.0-7630 with uname -a
If not, reboot and select it in the boot menu

@DeepAlex1247
Copy link
Author

(base) alex@pop-os:~/razer-laptop-control/razer_control_gui$ uname -a
Linux pop-os 5.8.0-7630-generic #32~1609193707~20.04~781bb80-Ubuntu SMP Tue Jan 5 21:23:50 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
(base) alex@pop-os:~/razer-laptop-control/razer_control_gui$

@gorghino
Copy link

gorghino commented Jan 15, 2021

Ok, check razerdaemon.service status now. What does it say?
Also I want to check new sudo dmesg | grep razer if any.
I also need to check if you haven't blacklisted razer before: try grep razer /etc/modprobe.d/* /lib/modprobe.d/*

@DeepAlex1247
Copy link
Author

(base) alex@pop-os:~/razer-laptop-control/razer_control_gui$ grep razer /etc/modprobe.d/* /lib/modprobe.d/*
(base) alex@pop-os:~/razer-laptop-control/razer_control_gui$ 

this returns nothing

@DeepAlex1247
Copy link
Author

(base) alex@pop-os:~/razer-laptop-control/razer_control_gui$ sudo systemctl status razerdaemon.service -l --full
● razerdaemon.service - Razer laptop control daemon
     Loaded: loaded (/etc/systemd/system/razerdaemon.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Fri 2021-01-15 22:45:19 CET; 9min ago
    Process: 17907 ExecStart=/usr/share/razercontrol/daemon (code=exited, status=1/FAILURE)
   Main PID: 17907 (code=exited, status=1/FAILURE)

Jan 15 22:45:12 pop-os daemon[17907]: Waiting for sysfs to be ready
Jan 15 22:45:13 pop-os daemon[17907]: Waiting for sysfs to be ready
Jan 15 22:45:14 pop-os daemon[17907]: Waiting for sysfs to be ready
Jan 15 22:45:15 pop-os daemon[17907]: Waiting for sysfs to be ready
Jan 15 22:45:16 pop-os daemon[17907]: Waiting for sysfs to be ready
Jan 15 22:45:17 pop-os daemon[17907]: Waiting for sysfs to be ready
Jan 15 22:45:18 pop-os daemon[17907]: Waiting for sysfs to be ready
Jan 15 22:45:19 pop-os daemon[17907]: Timed out waiting for sysfs after a minute!
Jan 15 22:45:19 pop-os systemd[1]: razerdaemon.service: Main process exited, code=exited, status=1/FAILURE
Jan 15 22:45:19 pop-os systemd[1]: razerdaemon.service: Failed with result 'exit-code'.
(base) alex@pop-os:~/razer-laptop-control/razer_control_gui$ 

@DeepAlex1247
Copy link
Author

(base) alex@pop-os:~/razer-laptop-control/razer_control_gui$ sudo dmesg | grep razer
(base) alex@pop-os:~/razer-laptop-control/razer_control_gui

there is just nothing installed from razer ...

@gitrazer
Copy link

gitrazer commented Apr 12, 2022

Hello mister master!

razer@BladePro:~/razer-laptop-control/razer_control_gui$ ls -la /dev/mapper/
итого 0
drwxr-xr-x 2 root root 160 апр 12 20:18 .
drwxr-xr-x 22 root root 4780 апр 12 20:18 ..
crw------- 1 root root 10, 236 апр 12 20:12 control
lrwxrwxrwx 1 root root 7 апр 12 20:12 nvme0n1p3_crypt -> ../dm-0
lrwxrwxrwx 1 root root 7 апр 12 20:18 veracrypt1 -> ../dm-4
lrwxrwxrwx 1 root root 7 апр 12 20:18 veracrypt1_0 -> ../dm-3
lrwxrwxrwx 1 root root 7 апр 12 20:12 vgmint-root -> ../dm-1
lrwxrwxrwx 1 root root 7 апр 12 20:12 vgmint-swap_1 -> ../dm-2

razer@BladePro:~/razer-laptop-control/razer_control_gui$ cat /etc/fstab

/etc/fstab: static file system information.

Use 'blkid' to print the universally unique identifier for a

device; this may be used with UUID= as a more robust way to name devices

that works even if disks are added and removed. See fstab(5).

/dev/mapper/vgmint-root / ext4 errors=remount-ro 0 1

/boot was on /dev/nvme0n1p2 during installation

UUID=994c665b-ce68-4c89-acdc-94aefa6ae637 /boot ext4 defaults 0 2

/boot/efi was on /dev/nvme0n1p1 during installation

UUID=671A-8EE8 /boot/efi vfat umask=0077 0 1
/dev/mapper/vgmint-swap_1 none swap sw 0 0

razer@BladePro:~/razer-laptop-control/razer_control_gui$ cat /etc/initramfs-tools/conf.d/resume
RESUME=UUID=994c665b-ce68-4c89-acdc-94aefa6ae637

After the instructions you gave me, I showed the same error as before. Unfortunately, the installation of utilities tlp tlp-rdw did not help either(

razer@BladePro:~/razer-laptop-control/razer_control_gui$ sudo ./install.sh
[sudo] password for razer:
./install.sh : line 3: cargo: command not found
cp: failed to execute stat for 'target/release/razer-cli': No such file or directory
cp: failed to execute stat for 'target/release/daemon': There is no such file or directory
Install complete!

@gorghino
Copy link

Install cargo with:
curl https://sh.rustup.rs -sSf | sh
then retry the razer_control_gui install.sh.
Then reboot and show the output of sudo systemctl status razerdaemon.service -l

@gitrazer
Copy link

gitrazer commented Apr 13, 2022

Hello Friend!

razer@BladePro:~$ sudo curl https://sh.rustup.rs -sSf | sh
[sudo] пароль для razer:
info: downloading installer

Welcome to Rust!

This will download and install the official compiler for the Rust
programming language, and its package manager, Cargo.

Rustup metadata and toolchains will be installed into the Rustup
home directory, located at:

/home/razer/.rustup

This can be modified with the RUSTUP_HOME environment variable.

The Cargo home directory located at:

/home/razer/.cargo

This can be modified with the CARGO_HOME environment variable.

The cargo, rustc, rustup and other commands will be added to
Cargo's bin directory, located at:

/home/razer/.cargo/bin

This path will then be added to your PATH environment variable by
modifying the profile files located at:

/home/razer/.profile
/home/razer/.bashrc

You can uninstall at any time with rustup self uninstall and
these changes will be reverted.

Current installation options:

default host triple: x86_64-unknown-linux-gnu
default toolchain: stable (default)
profile: default
modify PATH variable: yes

  1. Proceed with installation (default)
  2. Customize installation
  3. Cancel installation

1

info: profile set to 'default'
info: default host triple is x86_64-unknown-linux-gnu
warning: Updating existing toolchain, profile choice will be ignored
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: default toolchain set to 'stable-x86_64-unknown-linux-gnu'

stable-x86_64-unknown-linux-gnu unchanged - rustc 1.60.0 (7737e0b5c 2022-04-04)

Rust is installed now. Great!

To get started you may need to restart your current shell.
This would reload your PATH environment variable to include
Cargo's bin directory ($HOME/.cargo/bin).

To configure your current shell, run:
source $HOME/.cargo/env
razer@BladePro:~$

razer@BladePro:$ cd razer-laptop-control
razer@BladePro:
/razer-laptop-control$ cd razer_control_gui/
azer@BladePro:/razer-laptop-control/razer_control_gui$ sudo ./install.sh
[sudo] password for razer:
./install.sh : line 3: cargo: command not found
cp: failed to execute stat for 'target/release/razer-cli': No such file or directory
cp: failed to execute stat for 'target/release/daemon': There is no such file or directory
Install complete!
razer@BladePro:
/razer-laptop-control/razer_control_gui$ ls
Cargo.toml install.sh razerdaemon.service README.md src
razer@BladePro:~/razer-laptop-control/razer_control_gui$

(((((((((((((((((((((((((((((((((((((((((((((

razer@BladePro:~/razer-laptop-control/razer_control_gui$ sudo systemctl status razerdaemon.service -l
● razerdaemon.service - Razer laptop control daemon
Loaded: loaded (/etc/systemd/system/razerdaemon.service; enabled; vendor p>
Active: failed (Result: exit-code) since Wed 2022-04-13 20:10:58 MSK; 2min>
Process: 10115 ExecStart=/usr/share/razercontrol/daemon (code=exited, statu>
Main PID: 10115 (code=exited, status=203/EXEC)

апр 13 20:10:58 BladePro systemd[1]: Started Razer laptop control daemon.
апр 13 20:10:58 BladePro systemd[10115]: razerdaemon.service: Failed to execute>
апр 13 20:10:58 BladePro systemd[10115]: razerdaemon.service: Failed at step EX>
апр 13 20:10:58 BladePro systemd[1]: razerdaemon.service: Main process exited, >
апр 13 20:10:58 BladePro systemd[1]: razerdaemon.service: Failed with result 'e>
lines 1-11/11 (END)

@gorghino
Copy link

@gitrazer Please read what the terminal is telling you.

To get started you may need to restart your current shell.

This would reload your PATH environment variable to include
Cargo's bin directory ($HOME/.cargo/bin).

Now, close and open another shell.
Then run install.sh into razer_control_gui.
Paste here the output and reboot your pc.
Then paste sudo systemctl status razerdaemon.service -l

@gitrazer
Copy link

I don't understand how to reboot the current shell?

@gorghino
Copy link

Close the terminal and reopen it

@gitrazer
Copy link

This is a joke, I've been closing and restarting every day for a whole week) Now I'll make a bro, but it will be the same (

@gitrazer
Copy link

razer@BladePro:/razer-laptop-control/razer_control_gui$ sudo ./install.sh
[sudo] password for razer:
Try again.
[sudo] password for razer:
./install.sh : line 3: cargo: command not found
cp: failed to execute stat for 'target/release/razer-cli': No such file or directory
cp: failed to execute stat for 'target/release/daemon': There is no such file or directory
Install complete!
razer@BladePro:
/razer-laptop-control/razer_control_gui$

@gorghino
Copy link

Redo

curl https://sh.rustup.rs -sSf | sh
then
source $HOME/.cargo/env
and finally
install.sh from the razer_control_gui folder

@gitrazer
Copy link

gitrazer commented Apr 13, 2022

razer@BladePro:/razer-laptop-control/razer_control_gui$ source $HOME/.cargo/env
razer@BladePro:
/razer-laptop-control/razer_control_gui$ sudo ./install.sh
./install.sh : line 3: cargo: command not found
cp: failed to execute stat for 'target/release/razer-cli': No such file or directory
cp: failed to execute stat for 'target/release/daemon': There is no such file or directory

@gorghino
Copy link

gorghino commented Apr 13, 2022

I don't see the output of curl https://sh.rustup.rs -sSf | sh plus nobody told you to run it with sudo.

@gitrazer
Copy link

this is fantastic brother! I don't believe I can see the installation process!

@gitrazer
Copy link

I don't see the output of curl https://sh.rustup.rs -sSf | sh plus nobody told you to run it with sudo.
razer@BladePro:~$ curl https://sh.rustup.rs -sSf | sh
info: downloading installer

Welcome to Rust!

This will download and install the official compiler for the Rust
programming language, and its package manager, Cargo.

Rustup metadata and toolchains will be installed into the Rustup
home directory, located at:

/home/razer/.rustup

This can be modified with the RUSTUP_HOME environment variable.

The Cargo home directory located at:

/home/razer/.cargo

This can be modified with the CARGO_HOME environment variable.

The cargo, rustc, rustup and other commands will be added to
Cargo's bin directory, located at:

/home/razer/.cargo/bin

This path will then be added to your PATH environment variable by
modifying the profile files located at:

/home/razer/.profile
/home/razer/.bashrc

You can uninstall at any time with rustup self uninstall and
these changes will be reverted.

Current installation options:

default host triple: x86_64-unknown-linux-gnu
default toolchain: stable (default)
profile: default
modify PATH variable: yes

  1. Proceed with installation (default)
  2. Customize installation
  3. Cancel installation

1

info: profile set to 'default'
info: default host triple is x86_64-unknown-linux-gnu
warning: Updating existing toolchain, profile choice will be ignored
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: default toolchain set to 'stable-x86_64-unknown-linux-gnu'

stable-x86_64-unknown-linux-gnu unchanged - rustc 1.60.0 (7737e0b5c 2022-04-04)

Rust is installed now. Great!

To get started you may need to restart your current shell.
This would reload your PATH environment variable to include
Cargo's bin directory ($HOME/.cargo/bin).

To configure your current shell, run:
source $HOME/.cargo/env
razer@BladePro:$ ^C
razer@BladePro:
$ source $HOME/.cargo/env
razer@BladePro:$ cd razer-laptop-control
razer@BladePro:
/razer-laptop-control$ cd razer_control_gui/
razer@BladePro:~/razer-laptop-control/razer_control_gui$ ./intall.sh

Updating crates.io index
error: failed to write /home/razer/razer-laptop-control/razer_control_gui/Cargo.lock

Caused by:
failed to open: /home/razer/razer-laptop-control/razer_control_gui/Cargo.lock

Caused by:
Permission denied (os error 13)
[sudo] password for razer:
cp: failed to execute stat for 'target/release/razer-cli': No such file or directory
cp: failed to execute stat for 'target/release/daemon': There is no such file or directory
Install complete!
razer@BladePro:~/razer-laptop-control/razer_control_gui$

@gorghino
Copy link

Retry
source $HOME/.cargo/env
then
sudo ./install.sh in the razer_control_gui folder

@gitrazer
Copy link

razer@Blade Pro:$ source $HOME/.cargo/env
razer@Blade Pro:
$ cd razer-laptop-control
razer@BladePro:/razer-laptop-control$ cd razer_control_gui/
razer@BladePro:
/razer-laptop-control/razer_control_gui$ source $HOME/.cargo/eng
razer@BladePro:~/razer-laptop-control/razer_control_gui$ ./install.sh
Updating crates.io index
error: failed to write /home/razer/razer-laptop-control/razer_control_gui/Cargo.lock

Caused by:
failed to open: /home/razer/razer-laptop-control/razer_control_gui/Cargo.lock

Caused by:
Permission denied (os error 13)
[sudo] password for razer:
cp: failed to execute stat for 'target/release/razer-cli': No such file or directory
cp: failed to execute stat for 'target/release/daemon': There is no such file or directory
Install complete!
razer@BladePro:~/razer-laptop-control/razer_control_gui$

My friend, I don't want to bother you. But I reinstalled and rebooted many times all day yesterday. What I just didn't try to do(((

@gorghino
Copy link

razer@BladePro:~/razer-laptop-control/razer_control_gui$ ./install.sh

I asked you to install it with sudo. sudo ./install.sh

@gitrazer
Copy link

razer@BladePro:~/razer-laptop-control/razer_control_gui$ ./install.sh

I asked you to install it with sudo. sudo ./install.sh

razer@Blade Pro:$ source $HOME/.cargo/env
razer@Blade Pro:
$ cd razer-laptop-control
razer@BladePro:/razer-laptop-control$ cd razer_control_gui/
razer@BladePro:
/razer-laptop-control/razer_control_gui$ source $HOME/.cargo/eng
razer@BladePro:/razer-laptop-control/razer_control_gui$ sudo ./install.sh
[sudo] password for razer:
./install.sh : line 3: cargo: command not found
cp: failed to execute stat for 'target/release/razer-cli': No such file or directory
cp: failed to execute stat for 'target/release/daemon': There is no such file or directory
Install complete!
razer@BladePro:
/razer-laptop-control/razer_control_gui$

of course I tried both with sudo and without sudo.

@gorghino
Copy link

Try installing rustup as suggested by @raffael0

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
then
rustup default nightly
and
./install.sh

From your last log I see a typo (eng instead of env)

@gitrazer
Copy link

Try installing rustup as suggested by @raffael0

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh then rustup default nightly and ./install.sh

From your last log I see a typo (eng instead of env)

Brother - you're trying so hard to help, it's very nice. I want to make you a donation of 0.001 btc

@gitrazer
Copy link

razer@BladePro:~/razer-laptop-control/razer_control_gui$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
info: downloading installer

Welcome to Rust!

This will download and install the official compiler for the Rust
programming language, and its package manager, Cargo.

Rustup metadata and toolchains will be installed into the Rustup
home directory, located at:

/home/razer/.rustup

This can be modified with the RUSTUP_HOME environment variable.

The Cargo home directory located at:

/home/razer/.cargo

This can be modified with the CARGO_HOME environment variable.

The cargo, rustc, rustup and other commands will be added to
Cargo's bin directory, located at:

/home/razer/.cargo/bin

This path will then be added to your PATH environment variable by
modifying the profile files located at:

/home/razer/.profile
/home/razer/.bashrc

You can uninstall at any time with rustup self uninstall and
these changes will be reverted.

Current installation options:

default host triple: x86_64-unknown-linux-gnu
default toolchain: stable (default)
profile: default
modify PATH variable: yes

  1. Proceed with installation (default)
  2. Customize installation
  3. Cancel installation

1

info: profile set to 'default'
info: default host triple is x86_64-unknown-linux-gnu
warning: Updating existing toolchain, profile choice will be ignored
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: default toolchain set to 'stable-x86_64-unknown-linux-gnu'

stable-x86_64-unknown-linux-gnu unchanged - rustc 1.60.0 (7737e0b5c 2022-04-04)

Rust is installed now. Great!

To get started you may need to restart your current shell.
This would reload your PATH environment variable to include
Cargo's bin directory ($HOME/.cargo/bin).

To configure your current shell, run:
source $HOME/.cargo/env
razer@BladePro:/razer-laptop-control/razer_control_gui$ source $HOME/.cargo/env
razer@BladePro:
/razer-laptop-control/razer_control_gui$ rustup default nightly
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'
714.9 KiB / 714.9 KiB (100 %) 256.5 KiB/s in 3s ETA: 0s
info: latest update on 2022-04-14, rust version 1.62.0-nightly (34a6c9f26 2022-04-13)
info: downloading component 'cargo'
6.5 MiB / 6.5 MiB (100 %) 452.2 KiB/s in 19s ETA: 0s
info: downloading component 'clippy'
2.7 MiB / 2.7 MiB (100 %) 440.0 KiB/s in 7s ETA: 0s
info: downloading component 'rust-docs'
19.6 MiB / 19.6 MiB (100 %) 384.1 KiB/s in 53s ETA: 0s
info: downloading component 'rust-std'
26.1 MiB / 26.1 MiB (100 %) 402.7 KiB/s in 1m 13s ETA: 0s
info: downloading component 'rustc'
55.9 MiB / 55.9 MiB (100 %) 423.0 KiB/s in 2m 43s ETA: 0s
info: downloading component 'rustfmt'
4.1 MiB / 4.1 MiB (100 %) 406.1 KiB/s in 11s ETA: 0s
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'rust-docs'
19.6 MiB / 19.6 MiB (100 %) 7.0 MiB/s in 2s ETA: 0s
info: installing component 'rust-std'
26.1 MiB / 26.1 MiB (100 %) 9.1 MiB/s in 2s ETA: 0s
info: installing component 'rustc'
55.9 MiB / 55.9 MiB (100 %) 11.0 MiB/s in 5s ETA: 0s
info: installing component 'rustfmt'
info: default toolchain set to 'nightly-x86_64-unknown-linux-gnu'

nightly-x86_64-unknown-linux-gnu installed - rustc 1.62.0-nightly (34a6c9f26 2022-04-13)

razer@BladePro:~/razer-laptop-control/razer_control_gui$ ./install.sh
Updating crates.io index
error: failed to write /home/razer/razer-laptop-control/razer_control_gui/Cargo.lock

Caused by:
failed to open: /home/razer/razer-laptop-control/razer_control_gui/Cargo.lock

Caused by:
Permission denied (os error 13)
[sudo] password for razer:
cp: failed to execute stat for 'target/release/razer-cli': No such file or directory
cp: failed to execute stat for 'target/release/daemon': There is no such file or directory
Install complete!
razer@BladePro:/razer-laptop-control/razer_control_gui$
razer@BladePro:
/razer-laptop-control/razer_control_gui$ sudo ./install.sh
./install.sh : line 3: cargo: command not found
cp: failed to execute stat for 'target/release/razer-cli': No such file or directory
cp: failed to execute stat for 'target/release/daemon': There is no such file or directory
Install complete!
razer@BladePro:~/razer-laptop-control/razer_control_gui$

@gorghino
Copy link

According to rust-lang/cargo#6757 the issue may be somewhere else..

Let's try to reset your cargo file permission with:
sudo chown -R $(whoami) /home/razer/.cargo/

Then be sure to have build-essentials installed
sudo apt install build-essential

then retry install.sh (without sudo).

Let me know ;)

@gitrazer
Copy link

razer@BladePro:$ sudo chown -R $(whoami) /home/razer/.cargo/
[sudo] password for razer:
razer@BladePro:
$ sudo chown -R $(whoami) /home/razer/.cargo/
razer@BladePro:$ sudo apt install build-essential
Reading package lists… Done
Building a dependency tree
Reading status information… Done
The build-essential package of the newest version (12.8ubuntu1.1) is already installed.
build-essential is marked as manually installed.
0 packages have been updated, 0 new packages have been installed, 0 packages have been marked for deletion, and 11 packages have not been updated.
razer@BladePro:
$ cd razer-laptop-control
razer@BladePro:/razer-laptop-control$ cd razer_control_gui/
razer@BladePro:
/razer-laptop-control/razer_control_gui$ ./install.sh
Updating crates.io index
error: failed to write /home/razer/razer-laptop-control/razer_control_gui/Cargo.lock

Caused by:
failed to open: /home/razer/razer-laptop-control/razer_control_gui/Cargo.lock

Caused by:
Permission denied (os error 13)
cp: failed to execute stat for 'target/release/razer-cli': No such file or directory
cp: failed to execute stat for 'target/release/daemon': There is no such file or directory
Install complete!
razer@BladePro:~/razer-laptop-control/razer_control_gui$

@gorghino
Copy link

Try
sudo chown -R $(whoami) /home/razer/razer-laptop-control/
Then retry install.sh

@gitrazer
Copy link

gitrazer commented Apr 16, 2022

razer@BladePro:~/razer-laptop-control/razer_control_gui$ ./install.sh
Updating crates.io index
Downloaded lazy_static v1.4.0
Downloaded bytesize v1.1.0
Downloaded rand v0.7.3
Downloaded quote v1.0.18
Downloaded rand_chacha v0.2.2
Downloaded signal-hook-registry v1.4.0
Downloaded unicode-xid v0.2.2
Downloaded serde_derive v1.0.136
Downloaded num-traits v0.2.14
Downloaded signal-hook v0.1.17
Downloaded num-integer v0.1.44
Downloaded serde v1.0.136
Downloaded memchr v2.4.1
Downloaded ryu v1.0.9
Downloaded serde_json v1.0.79
Downloaded nom v7.1.1
Downloaded ppv-lite86 v0.2.16
Downloaded syn v1.0.91
Downloaded rand_core v0.5.1
Downloaded systemstat v0.1.10
Downloaded bincode v1.3.3
Downloaded getrandom v0.1.16
Downloaded cfg-if v1.0.0
Downloaded autocfg v1.1.0
Downloaded itoa v1.0.1
Downloaded proc-macro2 v1.0.37
Downloaded minimal-lexical v0.2.1
Downloaded chrono v0.4.19
Downloaded libc v0.2.123
Downloaded 29 crates (2.1 MB) in 13.85s
Compiling libc v0.2.123
Compiling proc-macro2 v1.0.37
Compiling autocfg v1.1.0
Compiling unicode-xid v0.2.2
Compiling syn v1.0.91
Compiling getrandom v0.1.16
Compiling serde_derive v1.0.136
Compiling cfg-if v1.0.0
Compiling memchr v2.4.1
Compiling serde v1.0.136
Compiling minimal-lexical v0.2.1
Compiling ppv-lite86 v0.2.16
Compiling serde_json v1.0.79
Compiling itoa v1.0.1
Compiling lazy_static v1.4.0
Compiling ryu v1.0.9
Compiling bytesize v1.1.0
Compiling num-traits v0.2.14
Compiling num-integer v0.1.44
Compiling nom v7.1.1
Compiling quote v1.0.18
Compiling signal-hook-registry v1.4.0
Compiling rand_core v0.5.1
Compiling signal-hook v0.1.17
Compiling rand_chacha v0.2.2
Compiling rand v0.7.3
Compiling chrono v0.4.19
Compiling systemstat v0.1.10
Compiling bincode v1.3.3
Compiling service v0.1.0 (/home/razer/razer-laptop-control/razer_control_gui)
warning: unused import: std::io::prelude::*
--> src/daemon.rs:8:5
|
8 | use std::io::prelude::*;
| ^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(unused_imports)] on by default

warning: function is never used: create
--> src/comms.rs:45:8
|
45 | pub fn create() -> Option {
| ^^^^^^
|
= note: #[warn(dead_code)] on by default

warning: function is never used: read_from_socket_req
--> src/comms.rs:97:8
|
97 | pub fn read_from_socket_req(bytes: &[u8]) -> Option {
| ^^^^^^^^^^^^^^^^^^^^

warning: unreachable pattern
--> src/daemon.rs:195:9
|
195 | _ => {
| ^
|
= note: #[warn(unreachable_patterns)] on by default

warning: variable does not need to be mutable
--> src/kbd/mod.rs:84:18
|
84 | fn from_save(mut json: serde_json::Value) -> Option {
| ----^^^^
| |
| help: remove this mut
|
= note: #[warn(unused_mut)] on by default

warning: function is never used: push_effect
--> src/daemon.rs:24:4
|
24 | fn push_effect(effect: Box, mask: [bool; 90]) {
| ^^^^^^^^^^^
|
= note: #[warn(dead_code)] on by default

warning: function is never used: bind
--> src/comms.rs:37:8
|
37 | pub fn bind() -> Option {
| ^^^^

warning: function is never used: send_to_daemon
--> src/comms.rs:62:8
|
62 | pub fn send_to_daemon(command: DaemonCommand, mut sock: UnixStream) -> Option {
| ^^^^^^^^^^^^^^

warning: function is never used: read_from_socked_resp
--> src/comms.rs:82:4
|
82 | fn read_from_socked_resp(bytes: &[u8]) -> Option {
| ^^^^^^^^^^^^^^^^^^^^^

warning: function is never used: read_brightness
--> src/driver_sysfs.rs:69:8
|
69 | pub fn read_brightness() -> u8 {
| ^^^^^^^^^^^^^^^

warning: associated function is never used: get_mask
--> src/kbd/mod.rs:120:12
|
120 | pub fn get_mask(&mut self) -> Vec {
| ^^^^^^^^

warning: field is never read: brightness
--> src/kbd/board.rs:187:5
|
187 | brightness: u8,
| ^^^^^^^^^^^^^^
|
note: KeyboardData has derived impls for the traits Debug and Clone, but these are intentionally ignored during dead code analysis
--> src/kbd/board.rs:184:16
|
184 | #[derive(Copy, Clone, Debug)]
| ^^^^^ ^^^^^
= note: this warning originates in the derive macro Clone (in Nightly builds, run with -Z macro-backtrace for more info)

warning: associated function is never used: set_brightness
--> src/kbd/board.rs:198:12
|
198 | pub fn set_brightness(&mut self, val: u8) -> bool {
| ^^^^^^^^^^^^^^

warning: associated function is never used: get_brightness
--> src/kbd/board.rs:202:12
|
202 | pub fn get_brightness(&mut self) -> u8 {
| ^^^^^^^^^^^^^^

warning: associated function is never used: set_key_colour
--> src/kbd/board.rs:212:12
|
212 | pub fn set_key_colour(&mut self, row: usize, col: usize, r: u8, g: u8, b: u8) {
| ^^^^^^^^^^^^^^

warning: associated function is never used: set_row_colour
--> src/kbd/board.rs:223:12
|
223 | pub fn set_row_colour(&mut self, row: usize, r: u8, g: u8, b: u8) {
| ^^^^^^^^^^^^^^

warning: service (bin "razer-cli") generated 2 warnings
warning: service (bin "daemon") generated 14 warnings
Finished release [optimized] target(s) in 40.41s
Install complete!
razer@BladePro:~/razer-laptop-control/razer_control_gui$

razer@BladePro:~/razer-laptop-control/razer_control_gui$ sudo systemctl status razerdaemon.service -l
● razerdaemon.service - Razer laptop control daemon
Loaded: loaded (/etc/systemd/system/razerdaemon.service; enabled; vendor p>
Active: active (running) since Sat 2022-04-16 14:51:48 MSK; 4min 40s ago
Main PID: 8032 (daemon)
Tasks: 3 (limit: 38377)
Memory: 868.0K
CGroup: /system.slice/razerdaemon.service
└─8032 /usr/share/razercontrol/daemon

апр 16 14:51:48 BladePro systemd[1]: Started Razer laptop control daemon.
апр 16 14:51:48 BladePro daemon[8032]: Sysfs ready! Starting daemon
апр 16 14:51:48 BladePro daemon[8032]: No effects save, creating a new one
апр 16 14:51:48 BladePro daemon[8032]: Power source changed! Now AC

razer@BladePro:/razer-laptop-control/razer_control_gui$
razer@BladePro:
/razer-laptop-control/razer_control_gui$ lsmod | grep razer
razercontrol 24576 0
hid 131072 5 i2c_hid,usbhid,hid_multitouch,hid_generic,razercontrol
razer@BladePro:/razer-laptop-control/razer_control_gui$ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-5.4.0-107-generic
razer@BladePro:
/razer-laptop-control/razer_control_gui$

@gitrazer
Copy link

gitrazer commented Apr 16, 2022

brother excellent!! Now I'll check how it will work. I want to pay you for your hard work. You're a real person!
https://www.paypal.me/AshconMohseninia ????

please tell me what else needs to be done? to make everything work to the maximum. I'm stupid, I'm already confused where we left off and what to do. I think we just launched the daemon, but nothing more, we need something else 100 percent

@gorghino
Copy link

Oh finally! I'm afraid you had the wrong writing/reading permissions on the razer-laptop-control folder ;)
If you want you can donate to the dev who created this project, following the link you shared.

Btw, you said you're facing high thermals with your unit, but this doesn't match well with maximum performance. If you want to exploit the maximum performance, you need to be ready to cool it with a ventilation pad or something similar.
The deamon now accepts two modes, balanced or gaming.
Read your current power state with:

razer-cli read power

I guess it's balanced by default. (Standard 35W CPU TDP)

Try with

razer-cli write power 1

if you want to try Gaming mode (55W CPU TDP - Allows for higher and more sustained CPU boost clocks)

@gitrazer
Copy link

on the contrary, I need a quiet mode to work. But to keep his computer cold. So that the work of the iron was not at maximum, but at a calm pace. That's why I needed to leave openrazer - because of it, the laptop was constantly hot. Please tell me if there is any interface or application or GUI where I can control Razer

@gitrazer
Copy link

How to delete this? I want install openrazer but i m can't delete razer control ! Internet serfing and browser mozila 69*C!!! It is not normal((( Driver cooler work bad(

@gitrazer
Copy link

https://www.youtube.com/watch?v=9HrKqD5xZVU&list=PLxrw-4Vt7xtsO21RxaDwd7GJlKs3YU-g4&index=3

i want use this interface but i did it... HOW!? Please tell me?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants