Linux mint on sony vaio

Linux и Sony Vaio VGN-P19VRN

Имею сей чудо девайс. На борту сейчас родная система, которая уже порядком задолбала. Посему хочу поставить linux и не мучаться. Сейчас пытаюсь определить что же туда ставить и каким путём идти.

Главные проблемы заключаются в следующем.

  1. На борту имеем SSD вместо диска, что, во-первых, отметает вариант прямого перебора дистрибутивов, а Live-версиям я как-то не очень доверяю. Посему хотелось бы понять какой из дистрибутивов будет меньше всего убивать ресурс диска. Варианта вынести часто меняющиеся вещи на друдой диск нет ввиду отсутствия такового.
  2. Вторая проблема заключается в наличии кучи всякого-разного внутри ноута. А это у нас и GPS, и 3G модем, блютусы/вайфаи/кардридеры/камера. Больше всего опасений у меня по поводу поддержки GPS модуля т.к. ещё не было опыта работы с оными.
  3. Энергоэффективность. Причём дело здесь не только во времени жизни от батареи (очень маленькой надо заметить), сколько в том, что при максимальном энергопотреблении ноут очень и очень сильно нагревается.
  4. Так же хочется чтобы нормально работали все кнопочки вроде отключения беспроводных сетей и прочих регуляторов яркости/громкости.

Вариантов решения этой проблемы вижу два.

  1. Взять наиболее понятный мне дистрибутив и долго и мучительно заниматься напилингом, пока всё не взлетит.
  2. Найти дистрибутив, который большую часть или всё будет уметь из коробки.

Собственно кто что скажет? Какой из вариантов выбрать или может кто предложит ещё варианты? Вопрос задаю здесь, т.к. больше всего интересует именно вопрос запуска всех встроенных железяк. Если мимо — перемещайте, куда считаете нужным.

Источник

Установка Linux на нетбук Sony Vaio

Простите за глупые вопросы, но нуб есть нуб. Может где-то и было, но я не настолько силен в линуксе, чтобы такие вещи реально найти.

У меня есть нетбук Sony Vaio VPCX11S1R. Интересный ноутбук. Советую погуглить, потому что словами объяснить крутость данной штуковины трудновато, проще увидеть на картинке в одном из обзоров.

Но он же проблемная штука, до такой степени что клавиатура от моих тщетных попыток поставить хоть что-то кроме прогнулась вместе с корпусом милиметра на 3.

История болезни: Затрахало переустанавливать шиндоус на компьютере для учебы. Начал ставить макось. Фэйл. До этого делал 2 хакинтоша, не без плясок с бубнами, но на них работало все. Начал ставить любимую Федору. Она стоит на компьютере мамы, мне очень понравилась система. Но не судьба, фэйл, не хочет ни в какую лайв систему грузить. Поставил убунту. Поставилась. С intel gma 500 работала, но так медленно, и так криво все отображалось, что покумекав 5 минут, оценив «ниггерский» дизайн (не подумайте что расист, ну не нравится мне ниггерская культура в современном виде, ничего в ней хорошего не вижу и недоумеваю как такая лажа могла изжить блюз) опять поставил шиндоус

Шло время. Увидел что есть еще Linux Mint. Написано что основана на убунте и совместима с ней. И переработан немного дизайн, скриншоты попялил и решил последнюю поставить с гномом третьим.

Итог: гном с лайв образом не загрузился, иксы не запустились, все, песец, агония, жизнь не удалась, как бы член от этого не упал. НО! Меня могут спасти добрые люди, которые проникнутся сочувствием к измученной душонке, если помогут разобраться что к чему, дадут если не прямое руководство, то хоть объяснять в какую степь идти и ответить на сопутствующие вопросы.

ПС. Вики ниасилил. Я очень туго воспринимаю сухой текст, примерно также как учебник по высшей математики, а именно никак.

Источник

Установка Linux на sony-vaio

Здравствуйте дамы, господа. проблема в следующем: Имеется ноутбук (нет бук): Sony vaio pcg-c1vpk с предустановленной windows 2k. Как вы понимаете, w2k не совсем входит в нынешние требования «походного» ноутбука (по специфике работы мне надо и программировать и сети чинить, и ещё тысячи дел). Так вот, нетбук рабочий, все хорошо. было бы, если бы не windows 2000, которая делает этот элегантный ноутбук — бесполезным хламом (не поднимается wi-fi, естественно не видит флешки больше 2 гб, а если и видит, то через 1 место). Итак, решил я переустановить ОС W2k на linux (остановился на puppy linux). И столкнулся с проблемой: 1 — нет CD рома (его не было в поставке, а оригинальный Sony CD — ROM стоит до неприличия дорого (данный CDром снабжен PCcard)), 2 — нет никакой возможности загрузиться с usb (в биосе boot с Внешних устройств, есть но флешку в упор не видит). 1 — нет eth портов вывода сервер отпадает 2 — по win2000 не поднимается вайфай (от usb) 3 — обновление bios — обновил, не помогло.

Вариант разборки нетбука отпадает, ибо строго настрого запретили его разбирать (амортизация, гарантия, вообщем запрещают бумажки проделывать эту процедуру) Буду рад любой помощи. Сама установка вполне возможна (в интернете есть фото с установленной red hat)

Вообще linux можно ставить из-под винды, гугли в эту сторону. А загрузка по сети или с USB-CDROM’а есть?

Самым простым вариантом может оказаться загрузка с обычного USB-CDROM-а, я б в первую очередь выяснил именно этот вопрос.

А найти USB-CDROM проблема? Дойди до любой мастерской, слёзно попроси, тебе одолжат на двадцать минут.

К сожалению нету. Если бы была я бы не спрашивал. По поводу установки из-под винды. Пробовал, выдает ошибку установщика думаю проблема в процессоре TM5600.

уже выяснил нужен Оригинальный CDром PCcard разъемом (100- 200 долларов). Обычный USB не видит. А вот FDDUSB видит (через него обновил биос). Но буржуи пишут, что можно убить ноут совсем (из-за процессора TM5600).

Источник

Установка Linux (Lubuntu) на нетбук Sony Vaio P

От делать нечего, а точнее от желания заиметь устройство, чуть более функциональное, чем планшет на Android’e решил прикупить себе б/у нетбук Sony Vaio P, уж очень привлек он меня габаритами.

Досталась мне модель VGN-P39VRL с «Атомным» процессором быстротою в 2ГГц и 128Гб SSD-диском. Ниже — мой опыт по установке Linux (точнее, Lubuntu) на данное устройство:

1. Выбор дистрибутива

Lubuntu. Все остальное на мой взгляд тяжеловесно — ведь нам нужны не шашечки, а ехать. Поэтому сюда: lubuntu.org

2. Установка

Со стандартного образа не удалось запуститься в графическом режиме, X.Org не стартовал, пришлось воспользоваться alternate.
Установка стандартная, особый момент: чтобы в дальнейшем пользоваться hibernate, нужно создать swap-раздел размером не меньше, чем объем оперативки.

3. Обновление

После установки — автоматом запускается Менеджер обновлений. Прежде чем запускать проверку обновлений, лучше зайти в настройки Менеджера и подключить все доступные репозитории — хуже от этого не будет, все равно по ходу пьесы придется еще подключать кучу ppa.
Потом — обновление.

4. Настройка сети.

Во время установки установщик попросил указать сеть, которая будет использоваться. Я указал свой домашний WiFi (имя сети и WPA-ключ). Побочный эффект — этот интерфейс прописался в
/etc/network/interfaces (причем ключ — открытым текстом!) и стал недоступен для управления Network Manager. Чтобы исправить этот недостаток, нужно сделать следующие вещи:

Удалить (или закомментировать с помощью #) описание интерфейса из файла /etc/network/interfaces

В настройках Network Manager (файл /etc/NetworkManager/NetworkManager.conf) указать:
[ifupdown]
managed=true

Перегрузиться.

5. Управление частотой процессора

Почему-то по-умолчанию не ставится модуль управления частотой процессора, поэтому он шарашит на максимальной частоте. Чтобы это исправить, устанавливаем:
sudo apt-get install cpufreqd cpufrequtils

6. Установка драйверов для видео

Информация здесь: ubuntuforums.org/showthread.php и здесь: wiki.ubuntu.com/HardwareSupportComponentsVideoCardsPoulsbo
Для версии 11.10 оптимальный вариант — драйвер EMGD. Так как в 12.04 — новая версия X.Org, придется вместо EMGD использовать PCB-GFX, который пока не поддерживает аппаратного ускорения 3D и видео, что меня удручает.

Читайте также:  Не удается завершить обновление windows 10 что делать

Ставим драйвера
sudo add-apt-repository ppa:gma500/emgd110
sudo apt-get update
sudo apt-get install emgd-support

Меняем файл конфигурации. Из-за экзотического разрешения экрана (1600х768), стандартный конфиг не подходит. Поэтому, конфиг берем отсюда: paste.ubuntu.com/877399, обзываем 10-emgd.conf и копируем в /usr/share/X11/xorg.conf.d/ (с заменой, если там что-то было одноименное).

Настройка спящего режима.
Ставим пакет acpi-support:
sudo apt-get install acpi-support
Качаем файл paste.ubuntu.com/878451, обзываем его acpi-support и заменяем файл в /etc/default

Настраиваем регулировку яркости.
Проверяем, что модуль ядра, отвечающий за регулировку яркости (emgdbl), добавлен в /etc/modules. Если нет, добавляем.
В /etc/modprobe.d/blacklist-emgd.conf добавляем модуль poulsbo, который нам мешает:
blacklist poulsbo
Вносим изменения в конфиг загрузчика, чтобы передать правильный параметр ядру:
файл /etc/default/grub, в строку GRUB_CMDLINE_LINUX_DEFAULT нужно записать acpi_backlight=video. Соответственно, если было написано что-то другое, изменить.
Обновить настройки загрузчика, запустив
sudo update-grub
Настройка всего, что связано с видео завершена, можно пробовать перегружаться

7. Энергопотребление

Powertop — неплохая утилитка, которая показывает энергопотребление

8. Оптимизация под SSD

Опции монтирования файловой системы. Рекомендуется добавить noatime,nodiratime,discard ко всем ext4 разделам в /etc/fstab
У меня правда при добавлении discard к / перестает грузиться система, так что здесь нужно осторожнее быть

Настраиваем отложенную запись. В /etc/sysctl.conf добавляем строки
vm.laptop_mode = 5
vm.dirty_writeback_centisecs = 6000

Меняем планировщик ввода/вывода на noop:
в /etc/default/grub в строке GRUB_CMDLINE_LINUX_DEFAULT добавляем elevator=noop, после чего запускаем
sudo update-grub

Переносим временные файловые системы в память. Для этого открываем /etc/fstab и добавляем туда строки
tmpfs /var/lock tmpfs defaults 0 0
tmpfs /tmp tmpfs defaults 0 0
tmpfs /var/tmp tmpfs defaults 0 0

Говорим системе больше использовать оперативу, чем swap: в /etc/sysctl.conf добавляем строку
vm.swappiness = 10

Практически все эти советы с более подробным описанием есть в статье: habrahabr.ru/post/129551, откуда я их и почерпнул

9. Оптимизация

Добавить в /etc/fstab для разделов в ext4 опции commit=100,barrier=0

Включаем zRam (компрессированный раздел подкачки в памяти):
sudo add-apt-repository ppa:shnatsel/zram
sudo apt-get update
sudo apt-get install zramswap-enabler

Обходное решение для бага ядра на повышенное энергопотребление:
В /etc/default/grub в строке GRUB_CMDLINE_LINUX_DEFAULT добавляем
pcie_aspm=force
Не забываем сделать
sudo update-grub

Ставим ядро от Liquorix с полезными патчами:
echo «deb liquorix.net/debian sid main» | sudo tee /etc/apt/sources.list.d/liquorix.list
echo «deb-src liquorix.net/debian sid main» | sudo tee -a /etc/apt/sources.list.d/liquorix.list
sudo apt-get update
sudo apt-get install ‘^liquorix-([^-]+-)?keyring.?’
sudo apt-get install linux-image-liquorix-686 linux-headers-liquorix-686

Есть одна особенность. В ядре 3.2 был переименован параметр модуля zram num_devices в zram_num_devices, поэтому после обновления zRam перестал работать. Чинится просто: в файле /etc/init/zramswap.conf строку
modprobe zram num_devices=$num_cpus
меняем на
modprobe zram zram_num_devices=$num_cpus

Оптимизация питания с помощью laptop-mode-tools.
Ставим собственно пакет
sudo apt-get install laptop-mode-tools
Как ни странно, пакет из Ubuntu 11.10 не поддерживает ядра ветки 3.x. Исправляем руками: в файле /usr/sbin/laptop_mode ищем строки
case «$KLEVEL» in
«2.4» ) ;;
«2.6» ) ;;
*)
log «ERR» «Unhandled kernel version: $KLEVEL (‘uname -r’ = ‘$(uname -r)’)» >&2
exit 1
;;
и между строк
«2.6» ) ;;
*)
вставляем строки
«3.0» ) ;;
«3.1» ) ;;
«3.2» ) ;;
«3.3» ) ;;
(чтобы уж наверняка).
После этого можно поковырять файлы настройки в /etc/laptop-mode/laptop-mode.conf и /etc/laptop-mode/conf.d/*

10. Всяко-разно

Баг с пустым пространством в lxpanel
После просыпания ноутбука в lxpanel в системном трее появляется пустое место. Чтобы его убрать в /etc/pm/sleep.d создаем файл с произвольным названием (я назвал 10_lxpanel-restart) и вставляем туда:
#!/bin/bash
case «$1» in
suspend|hibernate)
#do nothing
;;
resume|thaw)
export DISPLAY=:0
sleep 5 && lxpanelctl restart & #Delayed so the battery icon can finish wrecking shop.
;;
*)
exit 1
;;
esac
exit 0

На всякий случай делаем файл исполнимым:
sudo chmod a+x /etc/pm/sleep.d/10_lxpanel-restart

На текущий момент пока все. Безуспешно пытался завести встроенный GPS, но так как не особо он мне и нужен, пока оставил это занятие.

Источник

Fit for Purpose: Linux Mint Debian Edition on Sony Vaio Flip 13

Update: Since writing this, I have two things to add. Firstly, Linux Mint are terrible custodians of a distro and should no longer be trusted; they end-of-life’d LMDE mid-cycle with no upgrade/escape path to Debian, which is simply sloppy, and their packaging system for stock Linux Mint has come under scrutiny for being amateur-hour BS. Secondly, all of the below is now outdated, because Ubuntu works perfectly out of the box on this laptop, without any further hax or modifications. Enjoy!

Tired of having to carefully hold the case corner together when opening my old Asus laptop lid, and of the lacklustre performance on fairly simple tasks, I have been looking at getting a new laptop for some time now. When the opportunity arose to get a pretty high-end laptop at a several-hundred-euro discount (store display model!), I snapped it up, after testing quickly that it worked with LMDE (Linux Mint Debian Edition, my preferred OS) — I carry a liveUSB around for this reason!

The laptop in question is the Sony Vaio Flip, apparently one of the last Vaios ever made before Sony elected to leave the computer market. Which is a pity, because as last hurrahs go, this is a very nice laptop.

So, before going further, I’m not just writing this as a review. I heartily endorse this laptop to anyone who can find and afford one; as a Linux laptop it’s excellent and I’m still enjoying basic use. I’m writing this so that if people do go out and buy one on my word, they’ll have a reference document for setting up the juicy stuff; ironing out minor bugs, setting up multitouch, configuring features. All the stuff it comes preconfigured for on Windows, but why are you settling for Windows?

I won’t re-hash marketing materials available on a quick search, but the gist is that it’s a convertible that flips the screen down over the keyboard when in tablet mode, unlike the more popular but less elegant flip-over-back design popularised by the Lenovo Yoga series. It has a face-facing webcam and a forward (when holding it in tablet mode) camera also. The touchscreen is also a digitiser and it comes with a digi-pen, although I wasn’t told any of this when buying it! I also wasn’t told that it came with a tiny charger-mounting wifi router, designed for the sole purpose of enabling the use of ethernet cable-only internet in hotels etcetera. More on this later. Inside, it’s a dual-core Intel with dedicated Intel graphics, 128GB SSD, 8GB RAM, 2x USB3, HDMI, SD card slot, and combination audio. All the good stuff, none of the cruft.

So, here it is, running LMDE:


With a keen little portable speaker I picked up for cheaps, too.

And here it is in tablet mode, in case you didn’t believe me:


As if anyone would doubt my word..

So, upon testing in the shop, more or less all the critical stuff worked immediately: Wifi, Sound, Microphone, both cameras, screen, sleep, resume (though..), touchscreen, power/battery. I’m pretty happy if all that stuff is working out of the box, and the rest is configuration.

It’s rare that things go so smoothly on testing, so I snapped it up for a hefty price despite significant discount, but I expect this metal-cased thing to last me for a good few years so compared to my cheap plastic Asus I’m considering the amortised cost very reasonable.

Now, on to the stuff I discovered upon further testing.

Booting into Linux

Simple! Shut down the computer, and just press the “ASSIST” button at the top-right of the keyboard. It’ll boot into a touch-aware BIOS with a conspicuous icon to boot from “recovery media”…but first you’ll have to disable UEFI boot mode in BIOS settings unless you’ve created a UEFI boot USB. I didn’t; just go to BIOS settings, go to the boot pane, and change the UEFI boot option to “Legacy”, then return to the main BIOS boot screen and tap “boot from recovery media” to boot from the USB.

Читайте также:  Как отключить сообщение включить брандмауэр windows 10

Suggested Software

After installing the usual stuff (fresh python3.4 from source, pip-installed favourite tools and libraries, mail accounts, https-everywhere, disconnect, adblock plus, greasemonkey), there are a few things that particularly suit the touchscreen.

One obvious requirement is a decent keyboard, and I recommend the Florence virtual keyboard. It has a few odd bugs, and it’s a little unstable. I find that if it’s enabled, then the “repeat” feature of the normal keyboard stops after about three repeats, so navigating through text becomes a pain; just close Florence when in laptop orientation. I also find that when something like Firefox’s URL suggestions dropdown appears, it seizes focus from Florence, and I have to tap on florence to get focus again and resume typing. Then, when the dropdown stops suggesting things, florence works normally.

I would contemplate a script that tries to change Firefox settings on the fly when it detects a change of orientation, but that sounds like too much work. The likely fastest fix is just to turn off search suggestions until needed, but I find it too valuable, and I can endure a little discomfort for that value.

Next, given that the computer comes with a digitiser and drawing pen, is a drawing application. GIMP is an all-round fantastic image editing suite, but for natural-feeling and pretty “painting” or “freehand” drawing, install “MyPaint”. I left my three-year-old daughter playing with this and she quickly figured out the colour swatch and how to change pen types, which says a lot about the design. Pressure-sensitivity worked for me right away, no configuration needed.

Keyboard/Mouse Failure on Resume from Sleep

Update: This is no longer relevant when using Ubuntu. Ignore the below, everything about this Laptop works perfectly under Ubuntu Linux. 🙂

One bug that wasn’t apparent in the shop on LiveUSB mode, because no login screen appears in this case, is that on resuming from sleep the mouse and keyboard (but not the touchscreen) are disabled.

Fixing this is straightforward if you simply change your boot options so that Linux will reset the keyboard and mouse after resuming. The specific options you’ll need are ‘atkbd.reset i8042.reset’; add those two settings directly after the Linux boot line, and you’re set.

However, on LMDE and modern Debians, the boot options are generated by a somewhat arcane configuration file, so if you just change the /boot/grub/grub.cfg file as suggested by some, it’ll be overwritten at some stage in the future by an update and you’ll be back to square one. You need, rather, to edit the config files.

Trying to make this gentle for the non-technical user, I suggest the following:

  1. From the main mint menu, select Terminal
  2. In terminal, type gksu pluma /etc/defaults/grub, to open the Pluma text editor using super-user (gksu) and edit the /etc/defaults/grub file, from which new configs will be drawn when grub updates.
  3. The line beginning with GRUB_CMDLINE_LINUX_DEFAULT is the string of options added to Linux’s boot line, so add your options here. When I added the options to mine, the line read: GRUB_CMDLINE_LINUX_DEFAULT=»quiet splash atkbd.reset i8042.reset” (remember to leave the quotation marks around the options intact),
  4. Optional: While you’re in here, if you’d like to stop the boot screen from displaying at all during boot-up and shave 5 seconds off the boot process, change the option _GRUB_TIMEOUT _to 0 (zero).
  5. Click save, then close. That’s the default config done, but your current config still has the old options, so open that next: gksu pluma /boot/grub/grub.cfg
  6. This one is uglier and harder; you’re looking for the first menuentry definition, so use search (control-f) to seek “menuentry”. In the block of indented code that immediately follows, one line will begin with linux, and read something like: linux /boot/vmlinuz-3.11-2-amd64 root=UUID=(junk) ro quiet splash
  7. Your “root=UUID=” will be unique, so ignore it. You want to add the new options after the “ro quiet splash«: My boot-line now reads: “linux /boot/vmlinuz-3.11-2-amd64 root=UUID=(junk) ro quiet splash i8042.reset atkbd.reset”
  8. Save and reboot.

That’s it: after the above, your keyboard and mouse should work after resume without further issue.

Multitouch Touchpad

Update: This is no longer relevant when using Ubuntu. Ignore the below, everything about this Laptop works perfectly under Ubuntu Linux. 🙂

The touchscreen works out of the box, as does the pen digitiser; brilliant! Thanks Linux. However, the touchpad is not multi-touch enabled by default, and there’s a small bit of witchcraft necessary to get it going.

So, the bug which prevents it from working, which is apparently a case of “manufacturer is incompetent, keeps changing hardware interfaces, won’t release source code even though they are a hardware company” (also true of many major manufacturers, sadly), is here.

The fix, thanks to a contributor to that thread, is now pretty straightforward:

  1. Download a patch, which I’m hosting here on this blog to avoid broken links, but can also be had if you read through the above bug. Save it with the filename it’s given, because the below commands use that filename.
  2. From the mint menu, select Terminal.
  3. In terminal, navigate to where the file was saved. This is probably the Downloads folder, so use cd Downloads (if you’re a terminal n00b, ‘cd’ means ‘change directory’).
  4. Type the following commands; you’ll be asked for your user password, and you may be scolded about responsibly using “root privileges”. The first command should do nothing on a Debian system, but just in case any Ubuntu/Linux Mint users are following it may help avoid pain.
    1. sudo apt-get install build-essential
    2. sudo dkms ldtarball psmouse-elantech-x551c.tar.gz
    3. sudo dkms install -m psmouse -v elantech-x551c
    4. sudo rmmod psmouse
    5. sudo modprobe psmouse
  5. The above should immediately add support for multitouch in the “mouse” settings application, found via Mint Menu->All Applications->Preferences->Mouse; you ought to see a new tab for the touchpad with the usual options. If this doesn’t appear right away, try rebooting and look again. Normal touchpad multi-touch can be enabled here; two-finger scroll, etcetera.

Multitouch Touchscreen

Update: Ubuntu’s “Unity” interface now comes with a bunch of nice gestures built-in, and the GNOME3 desktop (which I prefer to use) likewise comes well-configured for touch. Touchegg setup is sadly more complex because of conflicts with the builtin desktops, and isn’t worth the pain anymore. The only serious need is for browsers, and in Firefox I recommend simply installing a touch/gesture addon.

This one is much easier, don’t worry! The touchscreen works perfectly, but to get multitouch gestures you’ll just need to run an application called “Touchégg” as a background process. You’ll also need some configuration options but I have a sample, adapted from an Ubuntu forum user’s, which works great.

If you’re using Ubuntu or “stock” Linux Mint, you should be able to install from the Terminal using just sudo apt-get install touchegg, so try that first.

If you’re using Debian, or if the above fails, you can compile a fresh version from source, following the instructions on the Touchegg wiki. Just remember to use cd to enter the uncompressed Touchegg source code folder before doing step 3.

Читайте также:  Безопасная загрузка windows не работает

Once you have touchegg installed, you’ll need a configuration file that makes it work with the touchscreen. Here’s mine. You need to save that file, then open Terminal, cd into the Downloads folder, then move it to where it belongs using_ tar -xaf touchegg.conf.tar.gz; mkdir

/.config/touchegg; mv touchegg.conf

/.config/touchegg _-Once you’ve done this, you can start or re-start touchegg from the same terminal window by typing, simply, _pkill touchegg; __touchegg_, and test the multi-touch commands defined in that configuration file on your touchscreen.

If all works correctly, you’ll want to have this start with your computer, and to stay alive as long as you’re using your computer. I found that touchegg is a little unstable, though, and sometimes crashes quietly, reverting you to chump-mode. To fix this, use a quick python script which will launch touchegg for you and reset it every time it crashes. Save this python script (compressed so wordpress will accept it) and use the terminal to decompress it and move it somewhere permanent: tar -xaf keeptouching.py.tar.gz; mv keeptouching.py

Now go to the Mint Menu->All Applications->Preferences->Startup Applications and click “Add”. In the dialog, give a name and description you like, then for “command” type _python3 /home/ /.config/touch_egg/keeptouching.py

Try restarting your computer; touchegg should be running. If it crashes, it’ll quietly be resurrected by the python script. It’s unlikely that Python will crash, but if touchegg quits normally somehow then Python will exit also.

You can figure out by reading the touchegg.conf file how to define new commands or edit existing ones; I added a three-finger-tap to Firefox to launch a new tab, and I added a general purpose four-finger-tap to close windows using control-W. The five-finger-tap to close applications is pretty consistent with this. I also overrode the double-finger left/right swipe in Firefox so that instead of moving the window it moves between tabs (as if by swiping aside the current tab).

Rotation

This is a developing area. I have a script kindly shared here which will, when run, rotate the screen and cycle through each 90-degree stage of rotation, which is helpful when you want to us the computer in A4 orientation.

However, there is as-yet no defined system to read the accelerometer and auto-rotate, although the drivers to access the device are available. If someone writes the code and presents an interface others can use safely, then the above script could be easily adapted into a listening server that rotates according to device orientation.

As a small and totally fixable gripe, the screen seems to have a separate digitiser to the finger-touch sensor, and this isn’t rotated correctly, so the pen doesn’t work in alternate rotations. However, I suspect this is a matter of merely adding a few lines to the script to rotate the digitiser input, too, and may set about doing that soon so I can draw more easily in A4 mode.

Also, as an improvement, I’m planning to break this script into four icons on my desktop, each an arrow pointing in a different direction, which would let me skip the “cycle through rotations” business and get straight to poking the direction I want to assume. At least, until the accelerometer is set up correctly..

Router Hax

Another nice feature of this laptop was that it came with a mini wifi router that clicks directly onto the charger and shares whatever’s plugged into its ethernet port over wifi. It’s a nifty hack to get around the fact that there’s no ethernet on the laptop but sometimes only ethernet internet is available (many hotels, for example).

Now, an ethernet adaptor would have been more practical, but this does let you tether more than one device, and it’s pretty cool, so I’ll pass on criticism. But I see wasted potential, here! Wouldn’t it be nice if that minirouter I can tote everywhere, which will auto-launch whenever I plug in the laptop, could be doing something useful like broadcasting a piratebox?

Alas, the chipset in the device was initially unknown for certain. Kudos to Sony et al, however, that they used GPL licensed code and dutifully followed the terms of the GPL to release the code of the router’s firmware. I could probably work with this and hack something together if I had time, but I don’t. I wanted to know whether I could install OpenWRT on this thing as things stand, and use OpenWRT to install the necessary bits for PirateBox or whatever.

To answer this, I’d need the chipset, so I cracked mine open. The teardown is now posted to WikiDevi which seems to be the go-to for wifi hardware hackers. I put it back together and it still works. The answer I got wasn’t that useful, though; the chipset is a System-on-Chip (SoC) from Realtek which has, at best, preliminary support for OpenWRT etcetera. The better known model, RTL8196C, has received at least some hacking, but the RTL8196EU in the Sony router is virtually undocumented so far.

It’s possible I could just burn the bleeding-edge latest OpenWRT onto the device and have it work right away, but I’m not willing to risk bricking it and having to muck around with serial interfaces to get it back to normal. It’s also probable that if I mucked around with the source code provided by Sony I could get it to build, and burn in a few extra treats besides, but that’s a lot of time spent at a time when I have very little to spend.

So, I will just watch this space and hope that the RTL8196EU chipset gets some more love from the OpenWRT hacker community over the next few months; hopefully I can just install a stock version someone else has built and tested and get rolling with my little mobile digital-public-library mounted on a charger!

Summary

So, that’s it. Aside from accelerometer, everything is working perfectly, and I’m really enjoying this laptop. I find it very natural to use the touchscreen for many tasks alternately with the mouse and keyboard, quite unlike the argh-argh-burn-it pain of Windows 8 when I have been forced to endure it.

I’m tempted to install Gnome 3 or Unity alongside the desktop system I’m using, MATE, to finally try the so-called “built for touchscreen” interfaces I’ve previously only used with a keyboard/mouse. But honestly, after bumping up the size of the taskbar very slightly, the touchscreen on this laptop is precise enough for comfortable use on a non-dedicated interface, and the multitouch gestures defined by others and adapted for my needs more than make up the difference. Instead of poking carefully for “minimise” I use a three-finger-swipe. Instead of poking carefully for full-screen or close, I have the three-up-swipe or the five-finger-tap. Most of the things that are hard to touch correctly are easy to gesture, and vice versa.

My only general gripe is that I haven’t yet got the on-screen keyboard on the login-screen, so popping up the lid to type in my password is a tiny pain. I’ll get there eventually.

Again; if you’re looking for a laptop and love or want to try Linux, this model or range, the Sony Vaio Fit convertible, is fantastic. Very worth the price, feels robust and long-lived, and performs really well out of the box. After a little configuration as above, it’s easily the best laptop I’ve owned or used so far. A pity, then, that Sony are no longer making them! Get yours quickly. 🙂

Источник

Оцените статью