(→How-To) |
(→UXSelect Switcher Tool (alpha)) |
||
| (10 intermediate revisions not shown) | |||
| Line 6: | Line 6: | ||
==Pre-work== | ==Pre-work== | ||
===Assumptions=== | ===Assumptions=== | ||
| - | # Using a supported Netbook, such at the Lenovo S10-3t that was given away at the 2010 MeeGo Conference | + | # Using a supported Netbook, such at the [[Devices/Ideapad|Lenovo S10-3t]] that was given away at the 2010 MeeGo Conference |
# You have root and/or sudo rights on the above device | # You have root and/or sudo rights on the above device | ||
| - | # You have an installed and running MeeGo 1.1 or later Netbook image ([http://download.meego.com/trunk-daily/builds/trunk/ Daily images]) | + | # You have an installed and running MeeGo 1.1 or later Netbook image ([http://download.meego.com/trunk-daily/builds/trunk/ Daily images]) |
| + | |||
===Install Handset Packages=== | ===Install Handset Packages=== | ||
====Add the Handset repos==== | ====Add the Handset repos==== | ||
| Line 14: | Line 15: | ||
# Your architecture (ARM, ia32, etc.) | # Your architecture (ARM, ia32, etc.) | ||
# Your desired stability (Daily vs. Weekly vs. Release repos) | # Your desired stability (Daily vs. Weekly vs. Release repos) | ||
| - | So, for example, to add the daily handset repos for the ia32 architecture, you could do this: | + | So, for example, to add the daily handset repos for the ia32 architecture, you could do this as root: |
| - | + | cat << EOF > /etc/zypp/repos.d/handset.repo | |
[handset] | [handset] | ||
name=handset | name=handset | ||
| Line 25: | Line 26: | ||
gpgkey=file:/etc/pki/rpm-gpg/RPM-GPG-KEY-meego | gpgkey=file:/etc/pki/rpm-gpg/RPM-GPG-KEY-meego | ||
EOF | EOF | ||
| + | |||
====Refresh the packages list==== | ====Refresh the packages list==== | ||
sudo zypper refesh | sudo zypper refesh | ||
| Line 41: | Line 43: | ||
# $ sudo telinit 3; sleep 3; sudo telinit 5; | # $ sudo telinit 3; sleep 3; sudo telinit 5; | ||
===Get correct resolution on IdeaPad=== | ===Get correct resolution on IdeaPad=== | ||
| - | + | Change the default target configuration by editing a gconf key: | |
| - | + | gconftool-2 --set /meegotouch/target/name --type=string "slate" | |
| - | + | The reset session as above | |
| + | |||
| + | There appears to be some issues with setting this gconf key and a couple of suggested methods of changing resolution have appeared: | ||
| + | Please try each and see which works | ||
| + | * /etc/meegotouch/devices.conf | ||
| + | ** edit this and set resolution XY in the [default] section as a last resort | ||
| + | |||
| + | * /usr/share/meegotouch/targets/Default.conf | ||
| + | ** same as previous suggestion | ||
| + | |||
| + | Did these work? are there are other ways or a specific one which works for you? | ||
| + | |||
| + | |||
| + | ==UXSelect Switcher Tool (alpha) == | ||
| + | |||
| + | Developer Bernd Wachter (Aard in IRC) has done some hacking and produced an alpha version of the required switcher. | ||
| + | |||
| + | Current features, all of them can be disabled[4]: | ||
| + | * Select UX | ||
| + | * Select user | ||
| + | * Go through PAM password auth (useful for unlocking cryptofs through pam, for example) | ||
| + | |||
| + | Please expand on this info and see how to reformat this page to show correctly. | ||
| + | |||
| + | Instructions for 1.1 and 1.2 can be found here: | ||
| + | |||
| + | http://lists.meego.com/pipermail/meego-dev/2011-March/481898.html | ||
| + | |||
| + | Repositories are: | ||
| + | * http://download.meego.com/live/home:/bwachter:/uxlaunch/1.1/ for 1.1 | ||
| + | * http://download.meego.com/live/home:/bwachter:/uxlaunch/1.2/ for 1.2 and N900DE | ||
| + | * http://download.meego.com/live/home:/bwachter:/uxlaunch/1.3/ for 1.3 (building against Trunk) | ||
| + | |||
| + | For 1.3 you only need to install uxselect, the uxlaunch version in Trunk contains the changes needed for uxselect to work. | ||
==TODO== | ==TODO== | ||
| - | * Development of a single, cross-MeeGo, desktop switcher? | + | * <S>Development of a single, cross-MeeGo, desktop switcher?</S> |
| + | ** See UX Switcher above. | ||
| + | |||
*: This would need to be Qt/Gnome agnostic or independent, since, today at least, the Netbook desktop is Gnome based, while the Handset one is Qt based. | *: This would need to be Qt/Gnome agnostic or independent, since, today at least, the Netbook desktop is Gnome based, while the Handset one is Qt based. | ||
*: Here's a simple script for starters that simply toggles between the Netbook and Handset desktops: | *: Here's a simple script for starters that simply toggles between the Netbook and Handset desktops: | ||
Contents |
At the 2010 MeeGo Conference in Dublin, the question of how to switch from the Netbook to the Handset desktop was asked during the MeeGo Handset UX Roadmap session. The context of the question had to do with using the Lenovo S10-3t Netbooks given away at the conference as platforms for MeeGo Handset development. Sabotage pipped up and offered up his experience as proof that it can be done, and some very basic instructions on how to do so. Since the question continues to come up in Mailing lists and IRC, the specifics on how to switch between desktops are being documented for ongoing reference.
If it proves useful and interesting to others, maybe these will spawn the development of a desktop "switcher" applet/tool... hint, hint ;)
You need to add the appropriate repos to your zypper configs so you can install the Handset packages. This will be different depending on:
So, for example, to add the daily handset repos for the ia32 architecture, you could do this as root:
cat << EOF > /etc/zypp/repos.d/handset.repo [handset] name=handset enabled=1 autorefresh=0 baseurl=http://repo.meego.com/MeeGo/builds/trunk/daily/handset/repos/ia32/packages/ type=rpm-md gpgcheck=1 gpgkey=file:/etc/pki/rpm-gpg/RPM-GPG-KEY-meego EOF
sudo zypper refesh
sudo zypper in -t pattern meego-handset-base-support meego-handset-desktop
Now that you have the needed packages installed, we must tell uxlaunch (process that controls the user session startup environment and auto starts configured user session daemons and apps)
Edit the /etc/sysconfig/uxlaunch file and comment out the following, existing, entry
sudo sed -i.BAK -ne 's/\(^#\)\(session=.*mcompositor.*$\)/\2/g; s/\(^session=.*mutter.*$\)/#\1/g; p' /etc/sysconfig/uxlaunch
Add a new, Handset specific, entry that will start the windomanager used (mcompositor)
sudo sh -c "echo 'session=/usr/bin/mcompositor' >> /etc/sysconfig/uxlaunch"
Change the default target configuration by editing a gconf key:
gconftool-2 --set /meegotouch/target/name --type=string "slate"
The reset session as above
There appears to be some issues with setting this gconf key and a couple of suggested methods of changing resolution have appeared: Please try each and see which works
Did these work? are there are other ways or a specific one which works for you?
Developer Bernd Wachter (Aard in IRC) has done some hacking and produced an alpha version of the required switcher.
Current features, all of them can be disabled[4]:
Please expand on this info and see how to reformat this page to show correctly.
Instructions for 1.1 and 1.2 can be found here:
http://lists.meego.com/pipermail/meego-dev/2011-March/481898.html
Repositories are:
For 1.3 you only need to install uxselect, the uxlaunch version in Trunk contains the changes needed for uxselect to work.
#!/bin/bash
NETBOOK_CMD="/usr/bin/mutter"
HANDSET_CMD="/usr/bin/mcompositor"
UXLAUNCH_CONF="/etc/sysconfig/uxlaunch"
CURRENT=$(grep -e "^session=" ${UXLAUNCH_CONF}|cut -d' ' -f1|sed -ne "s/^session=\(.*\)$/\1/p")
function sethandset {
sudo sed -i -ne 's/\(^#\)\(session=.*mcompositor.*$\)/\2/g; s/\(^session=.*mutter.*$\)/#\1/g; p' ${UXLAUNCH_CONF}
}
function setnetbook {
sudo sed -i -ne 's/\(^#\)\(session=.*mutter.*$\)/\2/g; s/\(^session=.*mcompositor.*$\)/#\1/g; p' ${UXLAUNCH_CONF}
}
[ $nocasematch ] || nocasematch=1
case "${CURRENT}" in
"${NETBOOK_CMD}" )
echo "Switching to Handset Desktop"
sethandset
;;
"${HANDSET_CMD}" )
echo "Switching to Netbook Desktop"
setnetbook
;;
*)
echo "Unknown desktop: \"$CURRENT\""
exit
;;
esac