MagickRotation icon not showing in Unity systray on saucy

Bug #1246873 reported by Alexander Heuer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magick Rotation
Fix Released
Medium
Favux

Bug Description

Opening new bug for this as requested

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

Alexander run the following apt-get command:
sudo apt-get install python-appindicator

Does it want to install 3 new packages?
libappindicator1, libindicator7, python-appindicator

If so go ahead and say yes and install them. See if that fixes the problem.

Revision history for this message
Alexander Heuer (evilphish) wrote :

fixed :)

that was easier than I thought ^^

One thing that is missing is that no autostart file is present for magickrotation. Installer didn't create it, but then again I ran it as root so it could install to /usr/share

Revision history for this message
Alexander Heuer (evilphish) wrote :

Just discovered a problem with the appindicator. If I click it and choose rotate it rotates the screen and the touchpad but not the IBM TrackPoint. It always stays on normal orientation.
Possibly related to the problem we had earlier?

Revision history for this message
Alexander Heuer (evilphish) wrote :

Sorry to spam this :)

Autostart is fixed by de-selecting and selecting the option in the icon setup.
Problem with rotation and TrackPoint is still there.
Also if I disable touch the icon does not change to reflect it.

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

Good!

I wish I understood why python-appindicator is being installed by default sometimes but not always in Saucy. Seems to me that should be a default install with Unity.

"Autostart is fixed by de-selecting and selecting the option in the icon setup." Nice. First feedback I've had that fixing that code was worth the time.

"Just discovered a problem with the appindicator. If I click it and choose rotate it rotates the screen and the touchpad but not the IBM TrackPoint. It always stays on normal orientation. Possibly related to the problem we had earlier?"
Might be due to the fix:
cur_dir = direction
My suspicion is there are actually two things using the variable rotation, and that is where the conflict is. Another way to put it is maybe Jayhawk got the namespace confabulated. One wants the current direction and the other wants the requested direction depending on which funtion is being called? I can try to trace that out but it may be tough. I'm reluctant to mess around too much with xrotate.py. That's his baby, it was the first module he did for Magick. It would be nice if there was a simple if conditional I could drop in somewhere.

How important is it to you now that we've got it working correctly for screen rotation? I can always just remove Rotation from the popup menu. Is the same problem present when using xrotate.py as a stand alone rotation script?

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

Sorry I meant the variable direction.

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

Proposed a new solution on the evdev rotation thread.

For the touch icon I'm not sure I'm going to fix it. Would be nice but the check mark in front of the new Touch menu entry in the popup menu conveys the same information. I already spent some time trying to get touch state to be updated when the popup menu item Touch is activated and it turns out to be challenging. For one thing still not quite sure the App Indicator spec. will let me change between that many icons. Not sure how much time I want to invest in it. Magick 1.7 with the App Indicator, Gnome Shell extension and Installer fixes is already way overdue.

Revision history for this message
Hugh Welles (hugh-welles) wrote :

So I have a lenovo yoga 11s, which I would like to rotate when in tablet mode. I tried to run the installer and received the message:

There are no package managers that are compatible
with this installer. Please read INSTALLER.txt
for manual installation instructions.

So I followed all the instructions in the installer, besides the system tray whitelist ones, because I guess Saucy doesn't use this anymore. When I try to run magick-rotation for the first time, it returns:

Please install 62-magick.rules in /etc/udev/rules.d

This step I've done and have verified that the .rules file is in there. Help!

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

I doubt Magick will work for the yoga. Right now it reads the swivel hinge signal of the Thinkpad's through the "ThinkPad Extra Buttons". Do you see that in 'xinput list'?

Another way to find the signal is to look in /sys/devices/platform/thinkpad_acpi for the hotkey_tablet_mode file. You can cat it after a rotation and see if the value has changed. Likely the directory after platform will be different for you and if there is a file changing values with rotation it will have a different name. Also an accelerometer, if that is what the Yoga uses, might be somewhere in /sys/devices/platform.

You should be able to use xrotate.py as a standalone rotation script as described in the README. Could try the new Rotate menu item in the App Indicator's popup menu I suppose.

Revision history for this message
Alexander Heuer (evilphish) wrote :

It is not important at all to me whether the rotate menu item in the indicator works or not. Just figured I'd bring it to attention :)

I use my hdapsrotate script with the extra buttons on my thinkpad for rotating stuff usually. And of course the hinge sensor with magickrotation.

Favux (favux-is)
Changed in magick-rotation:
status: New → Fix Released
assignee: nobody → Favux (favux-is)
importance: Undecided → Medium
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.