script fails to completely execute scripts

Bug #701874 reported by DavidFong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magick Rotation
In Progress
Low
Favux

Bug Description

openSuSE 11.3, GNOME 2.32

Strangely, magick-rotation 1.2 does not work properly when started from 'startup applications' in 'control panel'
The first few lines in the attached logfile shows what happens with 'try in rotation check failed'

The screen is rotated, but the 'pop up notification' does not show, and my 'post rotation' script is not fully executed...(the cellwriter window appears, but the keycodes are not changed. I have changed setkeycodes with `chmod a+s')

cellwriter --show-window; setkeycodes e006 103; setkeycodes e007 108

similarly, the 'post rotation' to normal script is not executed...

cellwriter --hide-window; setkeycodes e006 108; setkeycodes e007 103

(the cellwriter window is not even hidden)

However, if I close the magick-rotation program, and then restart using `run application...' from the menu, everything works fine!
(this is shown at the end of the attached log file)

Revision history for this message
DavidFong (vkelim) wrote :
Revision history for this message
DavidFong (vkelim) wrote :

Incidentally, the laptop is an HP Elitebook 2740p

Revision history for this message
DavidFong (vkelim) wrote :

My apologies, the problem disappears if I remove the 'setkeycodes' instructions. So it is something to do with trying to execute setkeycodes which is different when executed from 'startup applications' compared to running from the menu.

Favux (favux-is)
Changed in magick-rotation:
assignee: nobody → Favux (favux-is)
Revision history for this message
Favux (favux-is) wrote :

Hi DavidFong,

There may be something incomplete about the command you entered for 'setkeycodes' in Advanced Setup. Something to do with them anyway is causing a "hang" which is presumably why 'try in rotation check failed' appears in the log file.

Another way to look at the issue would be to shut down Magick & open a terminal and change directories into the magick-rotation folder. With the 'setkeycodes' commands in Advanced Setup start Magick with:

./magick-rotation

Then try to rotate etc. and shut it down with: ctr-z

See if any errors are reported concerning setkeycodes in the terminal.

You could also try shifting the setkeycode commands into the "Run before switch to tablet" box.

Revision history for this message
DavidFong (vkelim) wrote :

strangely, running `magick-rotation' from shell also didn't work (log attached).

running setkeycodes from terminal works fine.

shifting the setkeycodes into the `run before switch to tablet' did work! really strange!
?field.comment=strangely, running `magick-rotation' from shell also didn't work (log attached, the f'freeze' occurred at 1039)

running setkeycodes from terminal works fine.

shifting the setkeycodes into the `run before switch to tablet' did work! really strange!
?field.comment=strangely, running `magick-rotation' from shell also didn't work (log attached).

running setkeycodes from terminal works fine.

shifting the setkeycodes into the `run before switch to tablet' did work! really strange!

Thanks for your help. At least it works!

Favux (favux-is)
Changed in magick-rotation:
status: New → Invalid
importance: Undecided → Low
Revision history for this message
Favux (favux-is) wrote :

Good! You have things working. Thank you for your feedback to the Magick Rotation project.

Sorry I had to change the status to Invalid. It makes it sound like you didn't have an issue. Unfortunately it gives you very limited choices if you don't confirm and triage and actually start working on a fix.

Revision history for this message
Jayhawk (the-ayuthias) wrote :

I am currently in openSuSE and have found that setkeycodes needs to be used in admin mode in order to bind the keys. Did you give your username access to change without admin rights or did I do something incorrectly?

Favux (favux-is)
Changed in magick-rotation:
status: Invalid → Triaged
status: Triaged → Incomplete
Revision history for this message
DavidFong (vkelim) wrote :

I used `chmod a+s /bin/sketkeycodes' to allow non-root execute of setkeycodes.

I understand that this is

Revision history for this message
DavidFong (vkelim) wrote :

...I understand that `chmod a+s' is not pretty and a potential security risk.

Revision history for this message
Jayhawk (the-ayuthias) wrote :

Thanks for the information on that. I just needed the command so that I can duplicate the result. The problem that we are encountering is that cellwriter is not done executing. Because of this, cellwriter is still running and the next command is not being issued. In this case it is the setkeycodes. If you place the setkeycodes commands before cellwriter, it should work fine.

Please let me know if that works fine for you.

Revision history for this message
DavidFong (vkelim) wrote :

Thanks jayhawk, placing the setkeycodes commands before the cellwriter command worked!

Revision history for this message
Favux (favux-is) wrote :

Great! Thanks for updating us with that information. We should be able to do something about that issue in an upcoming release.

Changed in magick-rotation:
status: Incomplete → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.