<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for blog.seljebu.no</title>
	<atom:link href="http://blog.seljebu.no/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.seljebu.no</link>
	<description>useful or not so useful notes about computers and linux</description>
	<lastBuildDate>Fri, 24 May 2013 12:54:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on xargs list of files with whitespace by admin</title>
		<link>http://blog.seljebu.no/2013/05/xargs-list-of-files-with-whitespace/comment-page-1/#comment-468</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 24 May 2013 12:54:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.seljebu.no/2013/05/xargs-list-of-files-with-whitespace/#comment-468</guid>
		<description>find -type f -name &quot;.DS_Store&quot; -print0 &#124; xargs -0 rm</description>
		<content:encoded><![CDATA[<p>find -type f -name ".DS_Store" -print0 | xargs -0 rm</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on GLSlideshow picture directory and timeout by DC</title>
		<link>http://blog.seljebu.no/2011/02/glslideshow-picture-directory-and-timeout/comment-page-1/#comment-396</link>
		<dc:creator>DC</dc:creator>
		<pubDate>Thu, 21 Mar 2013 14:11:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.seljebu.no/?p=57#comment-396</guid>
		<description>Thanks! Just what I was looking for.</description>
		<content:encoded><![CDATA[<p>Thanks! Just what I was looking for.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on nfs4 and all_squash by DJ Tarazona</title>
		<link>http://blog.seljebu.no/2012/05/nfs4-and-all_squash/comment-page-1/#comment-320</link>
		<dc:creator>DJ Tarazona</dc:creator>
		<pubDate>Thu, 21 Jun 2012 08:47:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.seljebu.no/?p=310#comment-320</guid>
		<description>Thank you! Been trying to figure out why all_squash wasn&#039;t working for hours!  Why isn&#039;t this documented?!</description>
		<content:encoded><![CDATA[<p>Thank you! Been trying to figure out why all_squash wasn't working for hours!  Why isn't this documented?!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on HP LaserJet 1020 Ubuntu 10.04 Lucid Lynx by A60es</title>
		<link>http://blog.seljebu.no/2011/04/hp-laserjet-1020-ubuntu-10-04-lucid-lynx/comment-page-1/#comment-313</link>
		<dc:creator>A60es</dc:creator>
		<pubDate>Thu, 05 Apr 2012 20:24:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.seljebu.no/?p=169#comment-313</guid>
		<description>Great !! work for me. Thanks alot master :-)</description>
		<content:encoded><![CDATA[<p>Great !! work for me. Thanks alot master <img src='http://blog.seljebu.no/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on mount by network location by Timeout never ending command &#171; blog.seljebu.no</title>
		<link>http://blog.seljebu.no/2011/03/mount-by-network-location/comment-page-1/#comment-298</link>
		<dc:creator>Timeout never ending command &#171; blog.seljebu.no</dc:creator>
		<pubDate>Mon, 12 Dec 2011 11:08:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.seljebu.no/?p=82#comment-298</guid>
		<description>[...] never times out by itself. I had this problem with mounting NFS, and when doing it automagically(mount by network location), you get thousands of mount.nfs never timing [...]</description>
		<content:encoded><![CDATA[<p>[...] never times out by itself. I had this problem with mounting NFS, and when doing it automagically(mount by network location), you get thousands of mount.nfs never timing [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on HP LaserJet 1020 Ubuntu 10.04 Lucid Lynx by admin</title>
		<link>http://blog.seljebu.no/2011/04/hp-laserjet-1020-ubuntu-10-04-lucid-lynx/comment-page-1/#comment-282</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sat, 15 Oct 2011 08:57:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.seljebu.no/?p=169#comment-282</guid>
		<description>You&#039;ve probably figured it out(?), it should be &quot;sudo ./hplip-3.11.7-plugin.run&quot;. When you type it without ./ it searches for the command in system path(/bin, /usr/bin, etc). The dot means current directory. You may also submit the whole path, like this: &quot;sudo /home/lars/Downloads/hplip-3.11.7-plugin.run&quot;.</description>
		<content:encoded><![CDATA[<p>You've probably figured it out(?), it should be "sudo ./hplip-3.11.7-plugin.run". When you type it without ./ it searches for the command in system path(/bin, /usr/bin, etc). The dot means current directory. You may also submit the whole path, like this: "sudo /home/lars/Downloads/hplip-3.11.7-plugin.run".</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on HP LaserJet 1020 Ubuntu 10.04 Lucid Lynx by Lars</title>
		<link>http://blog.seljebu.no/2011/04/hp-laserjet-1020-ubuntu-10-04-lucid-lynx/comment-page-1/#comment-280</link>
		<dc:creator>Lars</dc:creator>
		<pubDate>Wed, 28 Sep 2011 12:25:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.seljebu.no/?p=169#comment-280</guid>
		<description>I&#039;ve extracted the file that I had to download manually (because for some reason I cannot get the files; it fails) and put them into the Downloads folder...

cd ~/Downloads/hplip-3.11.7-plugin/
sudo hplip-3.11.7-plugin.run
sudo: hplip-3.11.7-plugin.run: command not found

Meh.</description>
		<content:encoded><![CDATA[<p>I've extracted the file that I had to download manually (because for some reason I cannot get the files; it fails) and put them into the Downloads folder...</p>
<p>cd ~/Downloads/hplip-3.11.7-plugin/<br />
sudo hplip-3.11.7-plugin.run<br />
sudo: hplip-3.11.7-plugin.run: command not found</p>
<p>Meh.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on disable screen saver when looking at flash videos(youtube, vimeo, etc) by admin</title>
		<link>http://blog.seljebu.no/2011/05/disable-screen-saver-when-looking-at-flash-videosyoutube-vimeo-etc/comment-page-1/#comment-273</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 10 Aug 2011 11:28:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.seljebu.no/?p=235#comment-273</guid>
		<description>Updated script with Wimp(music application)
&lt;pre line=&quot;1&quot; lang=&quot;bash&quot;&gt;
#!/bin/bash

# cleanup any bad state we left behind if the user exited while flash was running
gconftool-2 -s /apps/gnome-screensaver/idle_activation_enabled --type bool true

#turn_it_off=0
sleepcomputer0=`gconftool-2 -g /apps/gnome-power-manager/timeout/sleep_computer_ac`
sleepdisplay0=`gconftool-2 -g /apps/gnome-power-manager/timeout/sleep_display_ac`
sleepcomputer1=`gconftool-2 -g /apps/gnome-power-manager/timeout/sleep_computer_battery`
sleepdisplay1=`gconftool-2 -g /apps/gnome-power-manager/timeout/sleep_display_battery`

# run loop forever
while true; do
  # interval between checks
  sleep 50
  SS_off=0

  # turn off if libflashplayer is in fullscreen
  # make id variable of window in focus
  current_window_id=`xprop -root &#124; grep &quot;_NET_ACTIVE_WINDOW(WINDOW)&quot; &#124; cut -d&quot; &quot; -f5`
  # make pid array of every command with libflashplayer in full(-f) command
  for pid in `pgrep -f libflashplayer` ; do

    # uncomment for debugging
    #echo $pid
    #xprop -id $current_window_id &#124; grep PID &#124; cut -d&quot; &quot; -f3
    #echo -e

    # check if window in focus is our libflashplayer
    if [ $pid == `xprop -id $current_window_id &#124; grep PID &#124; cut -d&quot; &quot; -f3` ]
      then SS_off=1
    fi
  done

  # turn of sleep if Wimp is running
  if [ `pgrep Wimp` ]; then wimp=1; else wimp=0; fi

  # read current state of screensaver
  ss_on=`gconftool-2 -g /apps/gnome-screensaver/idle_activation_enabled`

  # read current state of power manager
  pm_on=`gconftool-2 -g /apps/gnome-power-manager/timeout/sleep_computer_ac`

  # change state of screensaver as necessary
  if [ $SS_off == 1 ] &amp;&amp; [ $ss_on == true ]; then
#    echo &quot;Slår av skjermsparer&quot;
    gconftool-2 -s /apps/gnome-screensaver/idle_activation_enabled --type bool false
    gconftool-2 -s /apps/gnome-power-manager/timeout/sleep_computer_ac --type int 0
    gconftool-2 -s /apps/gnome-power-manager/timeout/sleep_display_ac --type int 0
    gconftool-2 -s /apps/gnome-power-manager/timeout/sleep_computer_battery --type int 0
    gconftool-2 -s /apps/gnome-power-manager/timeout/sleep_display_battery --type int 0
    gconftool-2 -s /apps/gnome-power-manager/backlight/battery_reduce --type bool false
  elif [ $SS_off == 0 ] &amp;&amp; [ $ss_on == false ]; then
#    echo &quot;Slår på skjermsparer&quot;
    gconftool-2 -s /apps/gnome-screensaver/idle_activation_enabled --type bool true
    gconftool-2 -s /apps/gnome-power-manager/timeout/sleep_computer_ac --type int $sleepcomputer0
    gconftool-2 -s /apps/gnome-power-manager/timeout/sleep_display_ac --type int $sleepdisplay0
    gconftool-2 -s /apps/gnome-power-manager/timeout/sleep_computer_battery --type int $sleepcomputer1
    gconftool-2 -s /apps/gnome-power-manager/timeout/sleep_display_battery --type int $sleepdisplay1
    gconftool-2 -s /apps/gnome-power-manager/backlight/battery_reduce --type bool true
  elif [ $wimp == 1 ] &amp;&amp; [ $pm_on != 0 ]; then
#    echo &quot;Slår av sleep&quot;
    gconftool-2 -s /apps/gnome-power-manager/timeout/sleep_computer_ac --type int 0
    gconftool-2 -s /apps/gnome-power-manager/timeout/sleep_computer_battery --type int 0
  elif [ $wimp == 0 ] &amp;&amp; [ $pm_on == 0 ]; then
#    echo &quot;Slår på sleep&quot;
    gconftool-2 -s /apps/gnome-power-manager/timeout/sleep_computer_ac --type int $sleepcomputer0
    gconftool-2 -s /apps/gnome-power-manager/timeout/sleep_computer_battery --type int $sleepcomputer1
  fi
done
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Updated script with Wimp(music application)</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># cleanup any bad state we left behind if the user exited while flash was running</span>
gconftool-<span style="color: #000000;">2</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>gnome-screensaver<span style="color: #000000; font-weight: bold;">/</span>idle_activation_enabled <span style="color: #660033;">--type</span> bool <span style="color: #c20cb9; font-weight: bold;">true</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#turn_it_off=0</span>
<span style="color: #007800;">sleepcomputer0</span>=<span style="color: #000000; font-weight: bold;">`</span>gconftool-<span style="color: #000000;">2</span> <span style="color: #660033;">-g</span> <span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>gnome-power-manager<span style="color: #000000; font-weight: bold;">/</span>timeout<span style="color: #000000; font-weight: bold;">/</span>sleep_computer_ac<span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #007800;">sleepdisplay0</span>=<span style="color: #000000; font-weight: bold;">`</span>gconftool-<span style="color: #000000;">2</span> <span style="color: #660033;">-g</span> <span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>gnome-power-manager<span style="color: #000000; font-weight: bold;">/</span>timeout<span style="color: #000000; font-weight: bold;">/</span>sleep_display_ac<span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #007800;">sleepcomputer1</span>=<span style="color: #000000; font-weight: bold;">`</span>gconftool-<span style="color: #000000;">2</span> <span style="color: #660033;">-g</span> <span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>gnome-power-manager<span style="color: #000000; font-weight: bold;">/</span>timeout<span style="color: #000000; font-weight: bold;">/</span>sleep_computer_battery<span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #007800;">sleepdisplay1</span>=<span style="color: #000000; font-weight: bold;">`</span>gconftool-<span style="color: #000000;">2</span> <span style="color: #660033;">-g</span> <span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>gnome-power-manager<span style="color: #000000; font-weight: bold;">/</span>timeout<span style="color: #000000; font-weight: bold;">/</span>sleep_display_battery<span style="color: #000000; font-weight: bold;">`</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># run loop forever</span>
<span style="color: #000000; font-weight: bold;">while</span> <span style="color: #c20cb9; font-weight: bold;">true</span>; <span style="color: #000000; font-weight: bold;">do</span>
  <span style="color: #666666; font-style: italic;"># interval between checks</span>
  <span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">50</span>
  <span style="color: #007800;">SS_off</span>=<span style="color: #000000;">0</span>
&nbsp;
  <span style="color: #666666; font-style: italic;"># turn off if libflashplayer is in fullscreen</span>
  <span style="color: #666666; font-style: italic;"># make id variable of window in focus</span>
  <span style="color: #007800;">current_window_id</span>=<span style="color: #000000; font-weight: bold;">`</span>xprop <span style="color: #660033;">-root</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">&quot;_NET_ACTIVE_WINDOW(WINDOW)&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-d</span><span style="color: #ff0000;">&quot; &quot;</span> -f5<span style="color: #000000; font-weight: bold;">`</span>
  <span style="color: #666666; font-style: italic;"># make pid array of every command with libflashplayer in full(-f) command</span>
  <span style="color: #000000; font-weight: bold;">for</span> pid <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span>pgrep <span style="color: #660033;">-f</span> libflashplayer<span style="color: #000000; font-weight: bold;">`</span> ; <span style="color: #000000; font-weight: bold;">do</span>
&nbsp;
    <span style="color: #666666; font-style: italic;"># uncomment for debugging</span>
    <span style="color: #666666; font-style: italic;">#echo $pid</span>
    <span style="color: #666666; font-style: italic;">#xprop -id $current_window_id | grep PID | cut -d&quot; &quot; -f3</span>
    <span style="color: #666666; font-style: italic;">#echo -e</span>
&nbsp;
    <span style="color: #666666; font-style: italic;"># check if window in focus is our libflashplayer</span>
    <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$pid</span> == <span style="color: #000000; font-weight: bold;">`</span>xprop <span style="color: #660033;">-id</span> <span style="color: #007800;">$current_window_id</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> PID <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-d</span><span style="color: #ff0000;">&quot; &quot;</span> -f3<span style="color: #000000; font-weight: bold;">`</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
      <span style="color: #000000; font-weight: bold;">then</span> <span style="color: #007800;">SS_off</span>=<span style="color: #000000;">1</span>
    <span style="color: #000000; font-weight: bold;">fi</span>
  <span style="color: #000000; font-weight: bold;">done</span>
&nbsp;
  <span style="color: #666666; font-style: italic;"># turn of sleep if Wimp is running</span>
  <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">`</span>pgrep Wimp<span style="color: #000000; font-weight: bold;">`</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span> <span style="color: #007800;">wimp</span>=<span style="color: #000000;">1</span>; <span style="color: #000000; font-weight: bold;">else</span> <span style="color: #007800;">wimp</span>=<span style="color: #000000;">0</span>; <span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
  <span style="color: #666666; font-style: italic;"># read current state of screensaver</span>
  <span style="color: #007800;">ss_on</span>=<span style="color: #000000; font-weight: bold;">`</span>gconftool-<span style="color: #000000;">2</span> <span style="color: #660033;">-g</span> <span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>gnome-screensaver<span style="color: #000000; font-weight: bold;">/</span>idle_activation_enabled<span style="color: #000000; font-weight: bold;">`</span>
&nbsp;
  <span style="color: #666666; font-style: italic;"># read current state of power manager</span>
  <span style="color: #007800;">pm_on</span>=<span style="color: #000000; font-weight: bold;">`</span>gconftool-<span style="color: #000000;">2</span> <span style="color: #660033;">-g</span> <span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>gnome-power-manager<span style="color: #000000; font-weight: bold;">/</span>timeout<span style="color: #000000; font-weight: bold;">/</span>sleep_computer_ac<span style="color: #000000; font-weight: bold;">`</span>
&nbsp;
  <span style="color: #666666; font-style: italic;"># change state of screensaver as necessary</span>
  <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$SS_off</span> == <span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$ss_on</span> == <span style="color: #c20cb9; font-weight: bold;">true</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
<span style="color: #666666; font-style: italic;">#    echo &quot;Slår av skjermsparer&quot;</span>
    gconftool-<span style="color: #000000;">2</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>gnome-screensaver<span style="color: #000000; font-weight: bold;">/</span>idle_activation_enabled <span style="color: #660033;">--type</span> bool <span style="color: #c20cb9; font-weight: bold;">false</span>
    gconftool-<span style="color: #000000;">2</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>gnome-power-manager<span style="color: #000000; font-weight: bold;">/</span>timeout<span style="color: #000000; font-weight: bold;">/</span>sleep_computer_ac <span style="color: #660033;">--type</span> int <span style="color: #000000;">0</span>
    gconftool-<span style="color: #000000;">2</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>gnome-power-manager<span style="color: #000000; font-weight: bold;">/</span>timeout<span style="color: #000000; font-weight: bold;">/</span>sleep_display_ac <span style="color: #660033;">--type</span> int <span style="color: #000000;">0</span>
    gconftool-<span style="color: #000000;">2</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>gnome-power-manager<span style="color: #000000; font-weight: bold;">/</span>timeout<span style="color: #000000; font-weight: bold;">/</span>sleep_computer_battery <span style="color: #660033;">--type</span> int <span style="color: #000000;">0</span>
    gconftool-<span style="color: #000000;">2</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>gnome-power-manager<span style="color: #000000; font-weight: bold;">/</span>timeout<span style="color: #000000; font-weight: bold;">/</span>sleep_display_battery <span style="color: #660033;">--type</span> int <span style="color: #000000;">0</span>
    gconftool-<span style="color: #000000;">2</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>gnome-power-manager<span style="color: #000000; font-weight: bold;">/</span>backlight<span style="color: #000000; font-weight: bold;">/</span>battery_reduce <span style="color: #660033;">--type</span> bool <span style="color: #c20cb9; font-weight: bold;">false</span>
  <span style="color: #000000; font-weight: bold;">elif</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$SS_off</span> == <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$ss_on</span> == <span style="color: #c20cb9; font-weight: bold;">false</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
<span style="color: #666666; font-style: italic;">#    echo &quot;Slår på skjermsparer&quot;</span>
    gconftool-<span style="color: #000000;">2</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>gnome-screensaver<span style="color: #000000; font-weight: bold;">/</span>idle_activation_enabled <span style="color: #660033;">--type</span> bool <span style="color: #c20cb9; font-weight: bold;">true</span>
    gconftool-<span style="color: #000000;">2</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>gnome-power-manager<span style="color: #000000; font-weight: bold;">/</span>timeout<span style="color: #000000; font-weight: bold;">/</span>sleep_computer_ac <span style="color: #660033;">--type</span> int <span style="color: #007800;">$sleepcomputer0</span>
    gconftool-<span style="color: #000000;">2</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>gnome-power-manager<span style="color: #000000; font-weight: bold;">/</span>timeout<span style="color: #000000; font-weight: bold;">/</span>sleep_display_ac <span style="color: #660033;">--type</span> int <span style="color: #007800;">$sleepdisplay0</span>
    gconftool-<span style="color: #000000;">2</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>gnome-power-manager<span style="color: #000000; font-weight: bold;">/</span>timeout<span style="color: #000000; font-weight: bold;">/</span>sleep_computer_battery <span style="color: #660033;">--type</span> int <span style="color: #007800;">$sleepcomputer1</span>
    gconftool-<span style="color: #000000;">2</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>gnome-power-manager<span style="color: #000000; font-weight: bold;">/</span>timeout<span style="color: #000000; font-weight: bold;">/</span>sleep_display_battery <span style="color: #660033;">--type</span> int <span style="color: #007800;">$sleepdisplay1</span>
    gconftool-<span style="color: #000000;">2</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>gnome-power-manager<span style="color: #000000; font-weight: bold;">/</span>backlight<span style="color: #000000; font-weight: bold;">/</span>battery_reduce <span style="color: #660033;">--type</span> bool <span style="color: #c20cb9; font-weight: bold;">true</span>
  <span style="color: #000000; font-weight: bold;">elif</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$wimp</span> == <span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$pm_on</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
<span style="color: #666666; font-style: italic;">#    echo &quot;Slår av sleep&quot;</span>
    gconftool-<span style="color: #000000;">2</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>gnome-power-manager<span style="color: #000000; font-weight: bold;">/</span>timeout<span style="color: #000000; font-weight: bold;">/</span>sleep_computer_ac <span style="color: #660033;">--type</span> int <span style="color: #000000;">0</span>
    gconftool-<span style="color: #000000;">2</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>gnome-power-manager<span style="color: #000000; font-weight: bold;">/</span>timeout<span style="color: #000000; font-weight: bold;">/</span>sleep_computer_battery <span style="color: #660033;">--type</span> int <span style="color: #000000;">0</span>
  <span style="color: #000000; font-weight: bold;">elif</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$wimp</span> == <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$pm_on</span> == <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
<span style="color: #666666; font-style: italic;">#    echo &quot;Slår på sleep&quot;</span>
    gconftool-<span style="color: #000000;">2</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>gnome-power-manager<span style="color: #000000; font-weight: bold;">/</span>timeout<span style="color: #000000; font-weight: bold;">/</span>sleep_computer_ac <span style="color: #660033;">--type</span> int <span style="color: #007800;">$sleepcomputer0</span>
    gconftool-<span style="color: #000000;">2</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>gnome-power-manager<span style="color: #000000; font-weight: bold;">/</span>timeout<span style="color: #000000; font-weight: bold;">/</span>sleep_computer_battery <span style="color: #660033;">--type</span> int <span style="color: #007800;">$sleepcomputer1</span>
  <span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #000000; font-weight: bold;">done</span></pre></td></tr></table></div>

]]></content:encoded>
	</item>
	<item>
		<title>Comment on Roundcube and automatic addressbook by val</title>
		<link>http://blog.seljebu.no/2011/05/roundcube-and-automatic-addressbook/comment-page-1/#comment-264</link>
		<dc:creator>val</dc:creator>
		<pubDate>Sun, 12 Jun 2011 13:48:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.seljebu.no/?p=198#comment-264</guid>
		<description>Thanks man,
I lose 3 hours with this plugin until I find your solution 
cheers</description>
		<content:encoded><![CDATA[<p>Thanks man,<br />
I lose 3 hours with this plugin until I find your solution<br />
cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on HP LaserJet 1020 Ubuntu 10.04 Lucid Lynx by admin</title>
		<link>http://blog.seljebu.no/2011/04/hp-laserjet-1020-ubuntu-10-04-lucid-lynx/comment-page-1/#comment-224</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sat, 07 May 2011 10:18:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.seljebu.no/?p=169#comment-224</guid>
		<description>Actually, I’m not sure if I tested a power cycle after I got it working. So, I might have the same problem as you are describing(printer is always powered on).

Anyhow, a dirty/quick fix, might be using udev to run the firmware-upload-command when it detects the printer. You should look in dmesg for printer vendorid(simply power cycle the printer and run “dmesg &#124; tail”). Create a rule for the printer in /etc/udev/rules.d/ and include the RUN+=”printer-firmware-upload-command”.</description>
		<content:encoded><![CDATA[<p>Actually, I’m not sure if I tested a power cycle after I got it working. So, I might have the same problem as you are describing(printer is always powered on).</p>
<p>Anyhow, a dirty/quick fix, might be using udev to run the firmware-upload-command when it detects the printer. You should look in dmesg for printer vendorid(simply power cycle the printer and run “dmesg | tail”). Create a rule for the printer in /etc/udev/rules.d/ and include the RUN+=”printer-firmware-upload-command”.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
