上网本/平板电脑:有没有办法在桌面模式和触摸模式(最好是 Ubuntu 的新触摸界面)之间切换?

Yve*_*sVO 5 tablet unity inspiron ubuntu-netbook dell

我有一台戴尔 Inspiron Duo(一款带翻转屏的上网本,也可用作平板电脑)……为了重振这款上网本/平板电脑,我安装了 Ubuntu (13.10)。

一切似乎都很好(在桌面模式下),但我想在屏幕翻转后切换到触摸界面。

我读了一篇关于戴尔 inspiron duo 的文章(http://ubuntuforums.org/showthread.php?t=1658635)但是......我非常喜欢 ubuntu unity 的新触摸界面......我会喜欢用那个...

有没有办法安装它并让它像我上面描述的那样运行?

(请使用描述性解释,因为我几乎是 Linux 的新手)

谢谢大家。

Cra*_*lWS 0

我相信您将能够使用该项目https://launchpad.net/magick-rotation

虽然我没有 Dell Inspiron Duo,但我使用的是 HP EliteBook 2760p,并且已成功使用该项目来运行 shell 脚本,从这一点上,人们可以编写他们想要的脚本,包括对现有程序的调用。

至于触摸界面,“ Ubuntu Touch ”主要适用于手机,但您有平板电脑...不确定“Unity”和“Touch”界面之间切换的复杂性...

尽管就编写屏幕旋转脚本而言,您可以在此处找到以下示例

#!/bin/bash

old="0"
while true; do
    if [[ -e /sys/devices/platform/hp-wmi/tablet ]]; then
        new=`cat /sys/devices/platform/hp-wmi/tablet`
        if [[ $new != $old ]]; then
            if [[ $new == "0" ]]; then
                echo "Rotate to landscape, hide CellWriter."
                xrandr -o normal
                xsetwacom set stylus rotate none
                xsetwacom set eraser rotate none
                xsetwacom set touch rotate none
                cellwriter --hide-window
            elif [[ $new == "1" ]]; then
                echo "Rotate to portrait, show CellWriter."
                xrandr -o right
                xsetwacom set stylus rotate cw
                xsetwacom set eraser rotate cw
                xsetwacom set touch rotate cw
                cellwriter --show-window
            fi
        fi
        old=$new
        sleep 1s
    fi
done

# From Red_Lion post #576:  http://ubuntuforums.org/showthread.php?t=845911&p=7732316
Run Code Online (Sandbox Code Playgroud)

有一个名为桌面切换器的项目,它有一个非维护的“源代码库”,如果您想做的不仅仅是上面建议的脚本编写,这可能会有所帮助......