Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Desktop Command Execution Widget scripts

    Reply
    Page 18 of 42 | Prev | 8   16     17   18   19     20   28 | Next | Last
    jakiman | # 171 | 2010-03-08, 10:18 | Report

    I'm trying to create a "switch" using this widget to lower the LCD brightness instantly just by clicking on the widget.

    Using following command:
    Code:
    echo 2 > /sys/class/backlight/acx565akm/brightness
    But it does nothing when used with the widget. Can I make it work?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    noobmonkey | # 172 | 2010-03-08, 10:41 | Report

    wouldn't you need root rights for that? so probably adding
    '| sudo gainroot'
    to the end? just a guess though. and would need rootsh installed.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    jakiman | # 173 | 2010-03-08, 11:45 | Report

    I tried that but it didn't make any difference.... =(

    Edit | Forward | Quote | Quick Reply | Thanks

     
    noobmonkey | # 174 | 2010-03-08, 12:28 | Report

    Originally Posted by jakiman View Post
    I tried that but it didn't make any difference.... =(
    meh was just a guess .... i'm no expert on linux though - hopefully some clever bod will look into it for you

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Alan_Peery | # 175 | 2010-03-08, 12:35 | Report

    Originally Posted by jakiman View Post
    Code:
    echo 2 > /sys/class/backlight/acx565akm/brightness
    Originally Posted by noobmonkey View Post
    wouldn't you need root rights for that? so probably adding
    '| sudo gainroot'
    to the end? just a guess though. and would need rootsh installed.
    You want edit /etc/sudoers, and add an appropriate line. Be careful, this is the file that makes "sudo gainroot" and a lot of other things work.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to Alan_Peery For This Useful Post:
    noobmonkey

     
    x-lette | # 176 | 2010-03-08, 12:54 | Report

    Originally Posted by Alan_Peery View Post
    You want edit /etc/sudoers, and add an appropriate line. Be careful, this is the file that makes "sudo gainroot" and a lot of other things work.
    And me I guess you should then put the 'sudo' to the beginning of the line (or even call 'su' instead). Piping the empty output of a not allowed command to 'sudo gainroot' seems quite useless to me.

    sudo echo 2 > /sys/class/backlight/acx565akm/brightness

    Edit | Forward | Quote | Quick Reply | Thanks

     
    rooted | # 177 | 2010-03-08, 13:39 | Report

    What you really need is rootsh in front of command - it executes it with root priv. if you have rootsh installed. So:

    rootsh echo 2 > ...

    Edit | Forward | Quote | Quick Reply | Thanks

     
    cpscotti | # 178 | 2010-03-09, 00:32 | Report

    Originally Posted by rooted View Post
    Wow, what a bug. So obvious, but unnoticed till now. Anyway, when DCE widget resized to bigger height (with no. of lines) the widget itself is bigger, but the tapping area stays the same. This means that if you tap the widget in the lower area, it doesn't register it. Please fix this, because I'm using it for buttons: disconnect/connect/lock screen (via dbus) and I need some bigger buttons.
    Yeah... it is a "known buggy". Will be fixed on the next version. (together with the overwritting on =])

    PS: I'm very busy and so the next version is expected to some time in the end of march when I'll have more time.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to cpscotti For This Useful Post:
    fpp

     
    kd_alex | # 179 | 2010-03-09, 04:59 | Report

    I use the LIRC program which has a socket issue whenever the phone is restarted. The issue is resolved by running the following command lines:

    sudo gainroot
    /etc/init.d/lirc start

    Is there anyway to use this widget to run these so I do not have to open a terminal when I want to use LIRC?? Maybe two widgets using an echo command for both?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    x-lette | # 180 | 2010-03-09, 12:27 | Report

    Similary to #177 you might want to use
    rootsh /etc/init.d/lirc start
    as commandline. Obviously you will need to have rootsh installed.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 18 of 42 | Prev | 8   16     17   18   19     20   28 | Next | Last
vBulletin® Version 3.8.8
Normal Logout