Public bug reported:

Binary package hint: compizconfig-settings-manager

My computer, the toshiba satellite t135-s1312 didn't have the fn+f6 and
fn+f7 keys working to raise and lower the screen brightness.  As a
result, I wrote some scripts to handle this myself:

**************************************************
brightness_up.sh
**************************************************
#!/bin/sh
test -f /tmp/dim || echo ff > /tmp/dim
brightness=$((`cat /tmp/dim`))
if [ $(grep -c ff /tmp/dim) -eq 1 ] ; then
setpci -s 00:02.0 F4.B=ff;exit;
elif [ $brightness -gt 99 ] ; then
brightness=ff;
else brightness=$((`cat /tmp/dim`+5));
fi
export brightness
if [ $brightness -eq 100 ] ; then
brightness=ff;
fi
echo $brightness > /tmp/dim
setpci -s 00:02.0 F4.B=`cat /tmp/dim`

**************************************************
brightness_down.sh
**************************************************
#!/bin/sh
test -f /tmp/dim || echo 6 > /tmp/dim
brightness=$((`cat /tmp/dim`-5))
if [ $(grep -c ff /tmp/dim) -eq 1 ] ; then
brightness=95;
elif [ $brightness -lt 0 ] ; then
brightness=0;

fi
echo $brightness > /tmp/dim
export brightness
setpci -s 00:02.0 F4.B=`cat /tmp/dim`

******************************

So I bound each of these scripts to one of the prementioned fn keys.
This works fine for controlling the brightness, but after every time
linux restarts, I noticed that the fn setting is back to the default
(displaying the brightness osd bar without actually changing the
brightness).  To rectify this, I have to go inside ccsm and disable and
re-enable the command plugin.

** Affects: compizconfig-settings-manager (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  Binary package hint: compizconfig-settings-manager
  
  My computer, the toshiba satellite t135-s1312 didn't have the fn+f6 and
  fn+f7 keys working to raise and lower the screen brightness.  As a
  result, I wrote some scripts to handle this myself:
  
  **************************************************
  brightness_up.sh
  **************************************************
  #!/bin/sh
  test -f /tmp/dim || echo ff > /tmp/dim
  brightness=$((`cat /tmp/dim`))
  if [ $(grep -c ff /tmp/dim) -eq 1 ] ; then
  setpci -s 00:02.0 F4.B=ff;exit;
  elif [ $brightness -gt 99 ] ; then
  brightness=ff;
  else brightness=$((`cat /tmp/dim`+5));
  fi
  export brightness
  if [ $brightness -eq 100 ] ; then
  brightness=ff;
  fi
  echo $brightness > /tmp/dim
  setpci -s 00:02.0 F4.B=`cat /tmp/dim`
  
  **************************************************
  brightness_down.sh
  **************************************************
  #!/bin/sh
  test -f /tmp/dim || echo 6 > /tmp/dim
  brightness=$((`cat /tmp/dim`-5))
  if [ $(grep -c ff /tmp/dim) -eq 1 ] ; then
  brightness=95;
  elif [ $brightness -lt 0 ] ; then
  brightness=0;
  
  fi
  echo $brightness > /tmp/dim
  export brightness
  setpci -s 00:02.0 F4.B=`cat /tmp/dim`
  
- 
  ******************************
  
  So I bound each of these scripts to one of the prementioned fn keys.
- This works fine for controlling the brightness, but after ever start, I
- noticed that the fn setting it back to the default (displaying the
- brightness osd bar without actually changing the brightness).  To
- rectify this, I have to go inside ccsm and disable and re-enable the
- command plugin.
+ This works fine for controlling the brightness, but after every time
+ linux restarts, I noticed that the fn setting is back to the default
+ (displaying the brightness osd bar without actually changing the
+ brightness).  To rectify this, I have to go inside ccsm and disable and
+ re-enable the command plugin.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/730443

Title:
  CompizConfig "Commands" don't load at startup

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to