Coder Social home page Coder Social logo

Comments (19)

pwr avatar pwr commented on July 17, 2024

Solaar does not need root access to run, and should not be run as root.

from solaar.

Nek- avatar Nek- commented on July 17, 2024

Oh. Sorry for not answering. To make it work under ubuntu, i was needed to run it as root.

from solaar.

pwr avatar pwr commented on July 17, 2024

That is strange.

I assume you installed solaar from the ppa?
When starting "solaar -dd" as a regular user, what errors do you get?

from solaar.

Lekensteyn avatar Lekensteyn commented on July 17, 2024

@Nek- Is this a user different from the one created during the Ubuntu installation? Run groups, it should contain plugdev. If it doesn't, you need to add yourself to that group and re-login:

sudo gpasswd -a $USER plugdev

from solaar.

Nek- avatar Nek- commented on July 17, 2024

I installed from the ppa, yes.

I can't start solaar with the command line "command not found: solaar".

I'm using the first user created on the ubuntu installation. plugdev is in the list. Here is what I get when I try without root: http://image.noelshack.com/fichiers/2013/17/1367157116-capture-du-2013-04-28-15-51-38.png and here is when i am: http://image.noelshack.com/fichiers/2013/17/1367157195-capture-du-2013-04-28-15-53-03.png

from solaar.

Lekensteyn avatar Lekensteyn commented on July 17, 2024

I believe the command is /opt/extras.ubuntu.com/solaar/bin/solaar or something on Ubuntu. Can you try running that command from the terminal with -dd and paste the output here? You might also want to check for files with wrong permissions:

find ~ ! -user $USER -ls

If you fid files in your home dir that are not owned by you, change the ownership.

from solaar.

Nek- avatar Nek- commented on July 17, 2024

No file not owned by me. Same result launching it "with the button" and with:

/opt/extras.ubuntu.com/solaar/bin/solaar -dd

from solaar.

Lekensteyn avatar Lekensteyn commented on July 17, 2024

"Bug" confirmed in a Ubuntu 12.04. Live CD using the daniel.pavel/solaar PPA. Error message:

Error loading theme icon: 'preferences-desktop-peripherals' for stock: Icon 'preferences-desktop-peripherals' not present in theme

Installing gnome-icon-theme-full should fix the issue (or any of the packages listed at http://packages.ubuntu.com/search?searchon=contents&keywords=preferences-desktop-peripherals.&mode=filename&suite=quantal&arch=any). (actually, this fixes my issue, you seem to miss other icons. Still, installing the gnome-icon-theme-full package may solve your issue)

from solaar.

Lekensteyn avatar Lekensteyn commented on July 17, 2024

@Nek- Can you please copy the output of /opt/extras.ubuntu.com/solaar/bin/solaar -dd to this place? Check whether the permissions in /opt are correct too (i.e. readable by the world):

find /opt/extras.ubuntu.com/solaar/ -ls

I always seem to get the same [@ ] icon from image 38 even when I run as root. Delving deeper in that issue.

from solaar.

pwr avatar pwr commented on July 17, 2024

Okay, so the main issue is that the 'solaar' binary is not in PATH on Ubuntu. This is because of how I built the Ubuntu package; I'll have to re-read the PPA building docs on what the exact policy is.

As for the missing icon, the bug appears to be #11 ; I'll look for a possible replacement and add gnome-icon-theme-full to the recommended dependencies.

from solaar.

Lekensteyn avatar Lekensteyn commented on July 17, 2024

@pwr Symlinking solaar and solaar-cli to /opt should work. The missing battery icon is odd, I also got that on a Live CD, but the battery() method really reports battery_000 and such a icon exists in the /opt directory.

from solaar.

Nek- avatar Nek- commented on July 17, 2024

@Lekensteyn in the folder, everything is owned by the "root" user. But I have the read right on everything.

Installing gnome icon full theme pack was apparently not a greet idea.

sudo apt-get install gnome-icon-theme-full
[sudo] password for nek: 
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Les NOUVEAUX paquets suivants seront installés :
  gnome-icon-theme-full
0 mis à jour, 1 nouvellement installés, 0 à enlever et 5 non mis à jour.
Il est nécessaire de prendre 8 735 ko dans les archives.
Après cette opération, 9 616 ko d'espace disque supplémentaires seront utilisés.
Réception de :1 http://fr.archive.ubuntu.com/ubuntu/ quantal/main gnome-icon-theme-full all 3.6.0-0ubuntu2 [8 735 kB]
8 735 ko réceptionnés en 5s (1 567 ko/s)           
Sélection du paquet gnome-icon-theme-full précédemment désélectionné.
(Lecture de la base de données... 261513 fichiers et répertoires déjà installés.)
Dépaquetage de gnome-icon-theme-full (à partir de .../gnome-icon-theme-full_3.6.0-0ubuntu2_all.deb) ...
Traitement des actions différées (« triggers ») pour « gnome-icon-theme »...
Paramétrage de gnome-icon-theme-full (3.6.0-0ubuntu2) ...
update-alternatives: using /usr/share/icons/gnome/scalable/places/ubuntu-logo.svg to provide /usr/share/icons/gnome/scalable/places/start-here.svg (start-here.svg) in mode automatique
update-alternatives: avertissement: skip creation of /usr/share/icons/gnome/256x256/places/start-here.png because associated file /usr/share/icons/gnome/256x256/places/ubuntu-logo.png (of link group start-here.svg) doesn't exist
update-alternatives: avertissement: skip creation of /usr/share/icons/gnome/48x48/places/start-here.png because associated file /usr/share/icons/gnome/48x48/places/ubuntu-logo.png (of link group start-here.svg) doesn't exist

After what, I didn't have icons (but there're still here in root).

Anyway, There is a fact: the application work, with or without icons ^^ .

from solaar.

Nek- avatar Nek- commented on July 17, 2024

Hello !

I'm on a clear install and here is the bug:
http://image.noelshack.com/fichiers/2013/18/1367349217-capture-du-2013-04-30-21-10-06.png

from solaar.

pwr avatar pwr commented on July 17, 2024

Hm, maybe the udev rules did not install properly. Could you please paste here the output of ls -l /dev/hidraw* ?

from solaar.

Lekensteyn avatar Lekensteyn commented on July 17, 2024

Is udevadm control --reload-rules executed in postinst? I do not think so.

I will have a look on it, it should use debhelper (dh_installudev). Edit: it does actually use dh_installudev, but the rules are not loaded/triggered. Does a reboot help?

from solaar.

pwr avatar pwr commented on July 17, 2024

The rules script in packaging/debian does use dh_installudev, but the postinst script generated by it does not reload the rules.

from solaar.

Lekensteyn avatar Lekensteyn commented on July 17, 2024

Oh, it seems that reloading is unnecessary as inotify appears to load the rules automatically. That does not apply to already-connected devices though.

from solaar.

Nek- avatar Nek- commented on July 17, 2024

It's now working. Probably after my computer reboot.

from solaar.

Lekensteyn avatar Lekensteyn commented on July 17, 2024

Very likely, unplugging the device should work too.

from solaar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.