Re: imonlcd progress bar do not turn on after 0x0 command

Yura Scheglyuk <[email protected]>
Newsgroups gmane.comp.sysutils.lcdproc
Message-ID <[email protected]>
		Hi!

On 15.10.2011 6:39, Markus Dolze wrote:

>> Progress bars of imonlcd is broken in lcdproc 0.5.5. Simple python
>> script progress-bars.py attached. On the first run this script shows one
>> and half progress bars. On the second run this scrips shows nothing.
>> This script worked correctly on lcdproc 0.5.4.

> I had a look at your script and the current code. It seems like it works
> as intended - as far as I understand.

Sorry I forgot to say in previous message that this bug was found by 
xbmc.ru user PetrovSE. He asked me to post this bug in lcdproc mailing list.

> Your script sends 0x40000000 which seems to be an unsupported command
> anyway.
> Then it sends some value modifying the progress bars followed by 0x0 to
> clear everything.
> But 0x0 will not clear the progress bar! It will only clear the icons.
> The correct command to clear the bars would be 0x10000000.

lcproc 0.5.4 clear icons AND progress bars by 0x0 command. lcproc 0.5.4 
turn on progress bars after 0x0 command.

lcproc 0.5.5-pre1 clear icons AND progress bars by 0x0 command. lcproc 
0.5.5-pre1 DO NOT turn on progress bars after 0x0 command.

New test python script p-bars-2.py attached.

-- 
Best regards, Yura.

_______________________________________________
LCDproc mailing list
[email protected]
http://lists.omnipotent.net/mailman/listinfo/lcdproc
p-bars-2.py (text/plain, 501 B)
import socket
import time

sc = socket.socket( socket.AF_INET, socket.SOCK_STREAM )
sc.connect(( '', 13666 ))

sc.send( 'hello\n' )
print sc.recv( 1024 )

sc.send( 'info\n' )
print sc.recv( 1024 )

# turn on some icons
sc.send( 'output 0x00000023\n' )
time.sleep( 1 )

# turn on progress bars
sc.send( 'output 0x10820010\n' )
time.sleep( 1 )

# clear icons (?)
sc.send( 'output 0x0\n' )
time.sleep( 1 )

# progress bars not shown, never...
sc.send( 'output 0x10820010\n' )
time.sleep( 1 )

sc.close()
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.