cm-rgb: Several installation problems

Following installation guide on a fresh linux mint install I got some missing dependency problems

1. Missing deps

Can be installed by executing:

pip install wheel
pip install enum

I don’t know much about python ecosystem, perhaps those deps could be added as project dependencies or at least document that in the installation guide

2. pip bin dir not in path

I had to manually add it in .bashrc

export PATH="$HOME/.local/bin/:$PATH"

3. /usr/bin/sh not found when executing cm-rgb-cli add-udev-rule

$ cm-rgb-cli add-udev-rule
sudo: /usr/bin/sh: command not found
Failed to create /etc/udev/rules.d/60-cm-rgb.rules

Quick & dirty workaround

sudo ln -s /bin/sh /usr/bin/sh

Hope this helps someone

Thanks for your great work!

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 19 (10 by maintainers)

Most upvoted comments

I’m happy it has worked for you. I’ll leave this issue open for now, I’ll update wiki on weekend.

I already did that:

$ cat /etc/udev/rules.d/60-cm-rgb.rules 
SUBSYSTEM=="usb", ATTR{idVendor}=="2516", ATTR{idProduct}=="0051", TAG+="uaccess", TAG+="udev-acl"

But was still requiring sudo, to avoid that, I had to add myself to the dialout group

sudo adduser <username> dialout

After restarting the session, everything works as expected

As a final note, some commands in README are using different (outdated?) parameter names

Thanks for your quick support!

Got it

  1. uninstall everything
  2. install using pip3 (my pip uses python2)
  3. install missing deps pip3 install xxx (wheel, pysensors, maybe others, I don’t remember)
  4. now I got the right version
  5. cm-rgb-monitor --show-temp fails but executing with sudo works:
  6. sudo `which cm-rgb-monitor` --show-temp
$ pip install 'cm-rgb==0.2.0' --force-reinstall
Collecting cm-rgb==0.2.0
  Could not find a version that satisfies the requirement cm-rgb==0.2.0 (from versions: 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.0.7, 0.0.8, 0.0.9, 0.1.0)
No matching distribution found for cm-rgb==0.2.0

Not in a hurry, we can continue later, thanks! 😉