Author Topic: Help Blanker  (Read 11369 times)

10BaseT

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • http://
Help Blanker
« on: April 01, 2006, 11:00:47 pm »
Hey all,

I've been at this for a week now and I can't seem to get the Blanker utlity to work at all.  I have gone so far as to reinstall pdaxrom with a fresh clean install to see if i could get Blanker to work... The only thing I have done is jgraves key mapping hack/mod...

Right now, know matter what I do or don't do with the Blanker utlity, I get 6 mins of music from xmms befor my Z c3100 suspends it's self... and then you know what happens after that...

#killall xmms
#ps -e
#kill ####
(if i'm lucky)

And 6 mins just happens to be what I set my Z to suspend at...
(I kinda feel like the Blanker utlity is one of those Playschool toys where the kid sits in the toy pushs the buttons, turns the wheel, but never gets anywhere...)

I vary curious as to how the Blanker utility is preventing the Z from suspending, if thats what it's supposed to do.

#man mb-applet-blanker (anyone?)


I would be greatful for any help (including the you stupid noob kind)  

-Thanks
10baseT

P.S.
THANKS pdaxrom for all your hard work!!!
Loadout
(SL-C3100 - Cacko 1.23, SMC(2642w) wireless CF card, SanDisk ultra II 1gb, usb others...)
-- "Ha, he called it a PDA..."

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Help Blanker
« Reply #1 on: April 02, 2006, 06:33:07 pm »
Quote
Hey all,

I've been at this for a week now and I can't seem to get the Blanker utlity to work at all.  I have gone so far as to reinstall pdaxrom with a fresh clean install to see if i could get Blanker to work... The only thing I have done is jgraves key mapping hack/mod...

Right now, know matter what I do or don't do with the Blanker utlity, I get 6 mins of music from xmms befor my Z c3100 suspends it's self... and then you know what happens after that...

#killall xmms
#ps -e
#kill ####
(if i'm lucky)

And 6 mins just happens to be what I set my Z to suspend at...
(I kinda feel like the Blanker utlity is one of those Playschool toys where the kid sits in the toy pushs the buttons, turns the wheel, but never gets anywhere...)

I vary curious as to how the Blanker utility is preventing the Z from suspending, if thats what it's supposed to do.

#man mb-applet-blanker (anyone?)


I would be greatful for any help (including the you stupid noob kind)  

-Thanks
10baseT

P.S.
THANKS pdaxrom for all your hard work!!!
[div align=\"right\"][a href=\"index.php?act=findpost&pid=121434\"][{POST_SNAPBACK}][/a][/div]

It seems to work fine for me out of the box - just choose 'Disable suspend'. I have noticed that the screen blanking part is a bit strange - it only blanks two thirds of it from the top (I suspect because I have an SL6000 in portrait mode and it expects landscape). Are you using openbox/matchbox?
SL6000-L, RC12

10BaseT

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • http://
Help Blanker
« Reply #2 on: April 02, 2006, 07:11:39 pm »
yeah right now i'm using the basic install of 1.1.0beta1. So yeah i think thats what comes with 1.1.0beta1...
(i do notice that the  Blank Screen option dose work but, then all the keyboad and out side buttons stop working(and it still suspends))

right now i going through the source code to see if i can understand better whats going on...  
Loadout
(SL-C3100 - Cacko 1.23, SMC(2642w) wireless CF card, SanDisk ultra II 1gb, usb others...)
-- "Ha, he called it a PDA..."

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Help Blanker
« Reply #3 on: April 02, 2006, 10:53:08 pm »
Quote
yeah right now i'm using the basic install of 1.1.0beta1. So yeah i think thats what comes with 1.1.0beta1...
(i do notice that the  Blank Screen option dose work but, then all the keyboad and out side buttons stop working(and it still suspends))

right now i going through the source code to see if i can understand better whats going on... 
[div align=\"right\"][a href=\"index.php?act=findpost&pid=121509\"][{POST_SNAPBACK}][/a][/div]

If blanking the screen stops things from working then it definitely seems like a bug or incompatibility somewhere. Do you have other suspend crashes/problems with your Z? If so, then I imagine you need to sort these first.
SL6000-L, RC12

10BaseT

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • http://
Help Blanker
« Reply #4 on: April 03, 2006, 07:34:47 pm »
Yeah....

I'm not get very far with this.

Can anyone with a c3100 running 1.1.0beta1 post here if there are experiencing the same problem, or am I the only one?
I hate to be chasing down a problem if it's something that i'm not doing right. I just don't know what will fix the my suspend problem if a clean install didn't... (unless it's a bug and not local to me.)

I did find something out that both the Blanker utility and Lightnpower both seem to set the suspend time with a

# xset dpms * * * (basically)

a snippet from the man pages about xset dpms

             "When numerical values are given, they set the
               inactivity period (in units of seconds) before the three  modes
               are  activated.   The  first  value  given is for the `standby'
               mode, the second is for the `suspend' mode, and  the  third  is
               for  the  `off'  mode.  Setting these values implicitly enables
               the DPMS features.  A value of zero disables a particular mode. "

So if you want the Z not to suspend

# xset dpms 30 0 0
(30 can be whatever... It just turns the screen off in 30 sec)
right ?

which is what Blanker does....
(doesn't work)
and if i type it in
(doesn't work)

any input?
Loadout
(SL-C3100 - Cacko 1.23, SMC(2642w) wireless CF card, SanDisk ultra II 1gb, usb others...)
-- "Ha, he called it a PDA..."

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Help Blanker
« Reply #5 on: April 03, 2006, 08:42:42 pm »
Quote
Yeah....

I did find something out that both the Blanker utility and Lightnpower both seem to set the suspend time with a

# xset dpms * * * (basically)

So if you want the Z not to suspend

# xset dpms 30 0 0
(30 can be whatever... It just turns the screen off in 30 sec)
right ?

which is what Blanker does....
(doesn't work)
and if i type it in
(doesn't work)

any input?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=121668\"][{POST_SNAPBACK}][/a][/div]

Use 'xset -q' to check whether the values are taking; lightnpower.py sets the default values using standby and off, but not suspend (although suspend does work if I set it manually).

Other than that, you're right - someone else with a C3100 needs to comment...
SL6000-L, RC12

10BaseT

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • http://
Help Blanker
« Reply #6 on: April 04, 2006, 06:04:28 am »
Yeah i'm ahead of ya' their...

wote me a little sript go somethin' like dis'

Code: [Select]
#!/bin/bash
for ((i = 0; i < 1; i = i ))
do
    xset q | tail -5 | head -1
    sleep 2
done

Yep they take and nothing chages them ether. the Z suspends while "xset q" still reports the off values is at 0
If I kill the blanker utility and type the "xset dpms 0 0 0" or "xset -dpms" the Z seems to pick a random time to shut off the sreen and to suspend... sometimes it's 5 seconds sometimes it's 5 minutes....

Starting to get a bit frustrated
Loadout
(SL-C3100 - Cacko 1.23, SMC(2642w) wireless CF card, SanDisk ultra II 1gb, usb others...)
-- "Ha, he called it a PDA..."

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Help Blanker
« Reply #7 on: April 04, 2006, 06:28:19 am »
Quote
Other than that, you're right - someone else with a C3100 needs to comment...
OK, in "Light & Power":

battery
suspend = 0
screen off = 5 min
backlighting = 1

ac power
suspend = 0
screen off = 0
backlighting = 1

This is the observed behaviour:

When on AC Power, does not suspend and does not blank. This is the expected behaviour.

When on Battery, does not suspend, this is expected.
But after power on (resume) the screen will blank after 5 min regardless of activity - so I could be typing away or poking the touchscreen and *bang* the screen blanks after 5 min. After I unblank the screen (ie press a key or touchscreen), then screen does  not blank again, ever, that is until I suspend/resume, whereupon it will cycle thru "blank after 5 min, then don't blank".

-- cheers
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

maxg

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
Help Blanker
« Reply #8 on: April 04, 2006, 02:30:15 pm »
I've got the same issue, and it's true the Blanker applet is broken since beta1. I don't know why the screen shuts off after resume on battery, even when you're typing text, which is of course a totally unexpected behaviour, but a report should be submitted on the tracker.
All my reports and testing were made (if no other mention given) on SL-C1000

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Help Blanker
« Reply #9 on: April 04, 2006, 06:31:39 pm »
Quote
I've got the same issue, and it's true the Blanker applet is broken since beta1. I don't know why the screen shuts off after resume on battery, even when you're typing text, which is of course a totally unexpected behaviour, but a report should be submitted on the tracker.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=121776\"][{POST_SNAPBACK}][/a][/div]

Judging by what is posted here, the blanker isn't broken - it's the apm (again!)
SL6000-L, RC12

10BaseT

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • http://
Help Blanker
« Reply #10 on: April 05, 2006, 12:11:58 am »
Well, now that i have looked at the code for both lightnpower and blanker I have come to some conclusions

1) i don't think that the blanker utility is really broken (but, something somewhere sure is...)
2) the blanker utility doesn't do exactly what you think it does (at lest I was confused about a few things)
3) lightnpower and the blanker utility should be rewritten into one entity ( my opinion of course...)

But... I have hit a dead end, I don't think rewriting the blanker utility is the solution to the problem at hand... I think that there is a third element somewhere that is cause the Z to suspend and to shut off the screen. (which is overwriteing the xset dpms ... command)

Any clues?

(maybe a bug report is needed)
Loadout
(SL-C3100 - Cacko 1.23, SMC(2642w) wireless CF card, SanDisk ultra II 1gb, usb others...)
-- "Ha, he called it a PDA..."

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Help Blanker
« Reply #11 on: April 05, 2006, 12:30:24 am »
Quote
Well, now that i have looked at the code for both lightnpower and blanker I have come to some conclusions

1) i don't think that the blanker utility is really broken (but, something somewhere sure is...)
2) the blanker utility doesn't do exactly what you think it does (at lest I was confused about a few things)
3) lightnpower and the blanker utility should be rewritten into one entity ( my opinion of course...)

But... I have hit a dead end, I don't think rewriting the blanker utility is the solution to the problem at hand... I think that there is a third element somewhere that is cause the Z to suspend and to shut off the screen. (which is overwriteing the xset dpms ... command)

Any clues?

(maybe a bug report is needed)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=121830\"][{POST_SNAPBACK}][/a][/div]

It seems like the xset dpms just isn't working - this is likely a kernel/machine specific issue, as it works for others using the same xset. I would recommend using the lightnpower applet to test a few different settings (if the above is all correct then it will probably ignore those settings), then file a bug report with the results.
SL6000-L, RC12

10BaseT

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • http://
Help Blanker
« Reply #12 on: April 06, 2006, 06:02:48 pm »
Hey!

Think i got something here.

I looked into what karlto suggested about testing the lightnpower applet and found that it worked... always.... which didn't make any sense being that it's useing the same command "xset dpms"...


So, I looked at the lightnpower.py sript a little closer to see what it was doing different, and there is one difference. It execs two commands to xset (as far as I can understand, sense I'm not good with python(i think it is)

Something like this...

to disable suspend

#xset dpms * 0 0
#xset -dpms

(the '*' is the time you want the screen to shut off at, in seconds. This still works after you exec the "xset -dpms" command which, doesn't make much sense to me but it works, so... whatever)

and to enable it again

#xset +dpms
#xset dpms * 0 *

which works!!! (so far)    

and therefore, my current work around is

killing off the Blanker utility and running this wrapper sript for xmms

Create an xmms wrapper file:
/usr/bin/xmmsWrapper.sh

Code: [Select]
#!/bin/bash
xmodmap /etc/X11/kb/xmms.xmodmap
/usr/X11R6/bin/xset dpms 30 0 0
/usr/X11R6/bin/xset -dpms
xmms
/usr/X11R6/bin/xset +dpms
/usr/X11R6/bin/xset dpms 120 0 360
xmodmap /etc/X11/kb/xmmsBack.xmodmap

I'm useing jgraves mp3 player hack/mod (my version of it)

mp3 player hack/mod

I think thats understandable...

-Enjoy  

--MY $600 MP3 player!!!!
Loadout
(SL-C3100 - Cacko 1.23, SMC(2642w) wireless CF card, SanDisk ultra II 1gb, usb others...)
-- "Ha, he called it a PDA..."

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Help Blanker
« Reply #13 on: April 07, 2006, 12:14:08 am »
Quote
to disable suspend

#xset dpms * 0 0
#xset -dpms

(the '*' is the time you want the screen to shut off at, in seconds. This still works after you exec the "xset -dpms" command which, doesn't make much sense to me but it works, so... whatever)

and to enable it again

#xset +dpms
#xset dpms * 0 *

which works!!! (so far)   
Cool; I know that 'xset dpms * * *' implies 'xset +dpms' (turn on dpms). I would have thought using a value of 0 would have implied the opposite ('xset -dpms' to turn it off). Obviously not... (or a bug in xset?)

Glad you got it sorted anyway
« Last Edit: April 07, 2006, 12:14:33 am by karlto »
SL6000-L, RC12

10BaseT

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • http://
Help Blanker
« Reply #14 on: April 12, 2006, 02:37:16 am »
Quote
Quote
to disable suspend

#xset dpms * 0 0
#xset -dpms

(the '*' is the time you want the screen to shut off at, in seconds. This still works after you exec the "xset -dpms" command which, doesn't make much sense to me but it works, so... whatever)

and to enable it again

#xset +dpms
#xset dpms * 0 *

which works!!! (so far)   
Cool; I know that 'xset dpms * * *' implies 'xset +dpms' (turn on dpms). I would have thought using a value of 0 would have implied the opposite ('xset -dpms' to turn it off). Obviously not... (or a bug in xset?)

Glad you got it sorted anyway
[div align=\"right\"][a href=\"index.php?act=findpost&pid=122169\"][{POST_SNAPBACK}][/a][/div]


What I meant by * * * is u can put any value there... I don't think a xset dpms takes * as a valid argument

but yeah, seems to be working fine
Loadout
(SL-C3100 - Cacko 1.23, SMC(2642w) wireless CF card, SanDisk ultra II 1gb, usb others...)
-- "Ha, he called it a PDA..."