Skip to main content

the avatar of Holger Macht

Saving Power with a new Killswitch Applet

Saving Power with a new Killswitch Applet

So there has been Hackweek at SUSE/Novell the last week and I'm finally finding the time to release a new version of killswitch-applet. This time, it's version 0.2.3, and really a lot has changed from the previous 0.1 release:

  • The applet remembers your settings across reboots

    That is actually the feature which makes you want killswitch-applet at all. Without the applet, whenever you disable a device, let's say bluetooth, after a reboot, the device is active again. I'm assuming two prerequisites here:

    1. You're not using a Thinkpad laptop, because those are the only ones I know of (please enlighten me if you know of others) which are able to store the state of their devices in NVRAM. Speficically, the thinkpad-acpi driver is able to do so.
    2. Your laptop doesn't have a physical hardware switch for enabling/disabling bluetooth/wifi. This hardware switch might also be hidden after a usual button which doesn't look like it is handled in hardware.

    All other laptop owners might find killswitch-applet very useful. If you're the owner of let's say, a sony, HP, Acer, or whatever laptop, you would have to disable the bluetooth device over and over again after each reboot. Maybe even after a sleep, depending on the hardware configuration, distribution, kernel version, etc.. These unnecessary mouse clicks are just avoided. Disabling the bluetooth device once will take care that it is disabled the next time killswitch-applet starts, which is mostly when you're doing a reboot and/or logging in to your desktop.

  • Vector graphic (svg) is used for the tray icon, which makes it scale nicely for whatever panel (kicker, gnome-applet, etc.) you're using.
  • Add tool tip to get a fast overview about which killswitches are active.

http://www.homac.de/images/killswitch-applet-0.2.3-screenshot.png

Source Code/Tarball Release

I found a home for the code and chose gitorious for it. Contributions welcome!

Here are the required tarballs:

Packages for openSUSE users

The package can be found in my home project or can be installed via 1-Click-Install:

the avatar of Andrew Wafaa

Goblin - Then, Now & the Future

It’s been a while since I mentioned anything about Goblin and anything netbook related, sorry. Anyhow as everyone is aware, Moblin has since been superseded by MeeGo. The timing was a bit of a PITA for me, as it coincided with the Factory freeze, which means I couldn’t update the relevant packages etc in-time for 11.3. As it stands, 11.3 should have an almost fully functional Moblin environment – I say ‘almost’ as there were two packages that I just couldn’t get to co-operate and build (the modified Moblin browser, and the Web panel).

a silhouette of a person's head and shoulders, used as a default avatar

Some LinuxTag 2010 impressions

LinuxTag 2010 has ended, openSUSE had a booth in the community area and we had a number talks. We also released OBS 2.0 on LinuxTag. You know this of course already, but here are some impressions.

openSUSE booth was very well visited. Various workshops and activities created several times actually a big swarm around it. Many people were interessted about OBS in special and I hope we won some more OBS users and developers.

Hennes and mine talk about “how to escape the free software hell” was provocant enough to get quite some people into our room directly after the keynote. I hope we were able to show off the coolness of OBS there.

Read the comments in the picture gallery for some background information.

a silhouette of a person's head and shoulders, used as a default avatar

Aversion to change is normal

Writing answer to a recent mail list discussion it occurred to me that aversion to change is the way to preserve energy. When there is no motion, then there is no need for more energy, so it is intrinsic property of any life form, which explains why it is so omnipresent, and by definition normal (as in usual, or average)  behavior.

The only problem with aversion to change is that it sometimes stands in the way to achieve better efficiency and preserve energy. Someone with better overview of particular process finds procedure that increases efficiency (preserve energy), but we have to put some effort (energy) to learn it. With aversion to change in the action we will resist learning and keep lower efficiency. Good is that this prevents easy change in the opposite direction, to lower efficiency, as at least some of affected will analyze procedure and reject bad one. Bad is that we will use more energy every moment of our life.

Nobody will tell you that he is not for a progress, but everyone will rationalize why the change is not good and should be postponed, or completely avoided. I would put all individual reasons in two categories:
  • nitpicking on side effects of a new method, that will be presented as key obstacles that have to be removed before method can be applied, and 
  • incompatibility with workarounds for deficiencies in the old one, which will be presented as unacceptable regressions in efficiency, and the reason to reject idea altogether until that is solved.

    To be honest, I've seen better method making people slower, but that was either learning phase, attempt to subvert "new thing" in hope it will go away, or combination of both. Also, I've seen bad ideas presented as revolutionary improvements, which was sometimes undetectable without being insider, or simply trying new thing for some time and see what it brings.

    Life is like a road, when you see obstacle try to avoid it, but also check another route, and compare results. Use what is better. It is that simple and it is no different with anything else.
    a silhouette of a person's head and shoulders, used as a default avatar

    Hackweek V


    I had been toying with the idea that, to split a file on my hard-disk, I have to read and write to a new file and then truncate the old file. But isn't it lots of unnecessary I/O. I already have all the data on disk. I should be able to change the meta-data alone and mark the file contents after some length as a different file.

    So during this hackweek, I implemented 2 system calls on Linux, sys_split and sys_join. And added support for these calls to the FAT file-system. http://lkml.org/lkml/2010/6/9/200 With this patch one can split a file into 2 or join 2 files without doing much I/O!

    Why FAT?
    Normally creating a new file and then truncating a file approach, needs temporary free space as well. I once had a need to split files when there was no free space available. On advanced filesystems, sparse-file support(i.e., files with holes) helped. But FAT does not support sparse files. Also I wanted these to work on thumb drives which are mostly formatted as FAT32.

    SLE11 SP1 release
    This Hackweek was scheduled to follow the release of SLE11 SP1. And all the Bangalore employees, who worked for SLE11 SP1 were given a portable 160 hard-drive as a gift in the middle of hackweek. The transcend disk has a one-touch back up button, which works to sync selected folders, using a proprietary software available only on Windows. No support in Linux or Mac.

    gnireenignE one-touch button

    I thought, if the button press could be detected, I could use it to unmount the disk! So I set out to reverse engineer it. Usbmon + KVM + windows XP. Got the usbmon traces. I was expecting to see a simple Interrupt endpoint. But it was a bulk end-point only interface. And the software was continuously polling to get the button status. It was quite interesting to decipher the USBS and USBC's, but the SCSI/ATAPI payload had an unknown command DFh. And I assumed that by sending the command, if a button had been pressed in between, I would get a different value. And was trying hard for hours. But failed. Then took few more traces using Windows. Tried hard. When I almost gave up, I found couple of return bytes slightly different! Voila. The return value is different, only if the button is held down during the command. Now, I have a script to sync/unmount with a one-touch button! If you have this device, you can modify the script to do what ever you want it to do. Let your creativity flow freely.

    a silhouette of a person's head and shoulders, used as a default avatar

    Wiki: change postponed

    or why we don't do that, it is a FOSS world?

    Well, we (contributors) are stretched all over the place, and there is still a lot to do, but keeping wiki hidden on side will not bring more contributors either. New date according to Rupert's post on the opensuse-wiki@opensuse.org mail list is July 12th.

    Wiki editing is not a big fun in the beginning, there is more then a few things to learn about to be able to play with, but on the other hand if you don't need fancy formating, then you can start almost instantly. Learn how to start article, then few formatting tips, like mark titles,  and you are good to go.

    Title in the MediaWiki is title quoted with equal signs, like == Title ==, add more = and title is smaller.

    You also have to know wiki editor requires to write from the beginning of the line. Any (white) space on the begin will convert your writing in a preformatted text  written in a fixed font, so there is no way to indent first line of paragraph without dirty tricks, not even for a single space.

    Also, learn to use preview button, it will make you look good in the eyes of the wiki maintenance people that hate recent changes page filled with changes that are not actually changes, but someone that uses save button all the time.

    There is of course more, but to correct typo, grammar or spelling, you have to know even lesser. Correcting typos is one of the ways to help, and if you ask me, just as important as being able to create fancy layout, because there is no layout that will make an article with typos look good.
    the avatar of Matthias Hopf

    the avatar of Andrew Wafaa

    Not today Josephine

    I’ve had a lot of people ask me both within the openSUSE community and outside of it, whether I applied for the vacant openSUSE Community Manager role. In a nutshell, yes I did apply for it. Why the past tense? Well I got notified almost two weeks ago that I was unsuccessful :’-( The good thing that did come out of it, is that there seem to be some very good candidates in the running – let’s face it, they would have to be pretty damned good to beat me ;-)

    a silhouette of a person's head and shoulders, used as a default avatar

    Ты помнишь, как всё начиналось...

    И так, моё знакомство с Linux состоялось году в 2006. В одном из стареньких, даже на тот момент, номеров журнала "Домашний компьютер". Этот журнал я брал в городской библиотеке, на руки давали номера полугодичной давности и старше, а свежие были доступны только в читальном зале или на платном абонементе.
    Пришествие первое. 
    В одном из номеров мое внимание привлекла статья с обзором операционной системы Knoppix. Эта система заинтересовала меня по двум причинам - во-первых это был "какой-то" Linux, и для меня - ещё начинающего пользователя ПК, было жутко любопытно посмотреть, что это такое; во-вторых эту систему даже не надо было устанавливать, так как все работало прямо с CD-ROM-а.
    Загоревшись этой идеей я принялся искать Knoppix, что в моей глухой провинции было далеко не простым делом... Не помню как, но я все же получил заветный диск и начал погружаться в новую систему. Поначалу все было интересно и необычно, но буквально через неделю (а то и меньше) мой запал кончился и мне стало скучно. Я вернул диск его владельцу, даже не сделав с него копии...
    Пришествие второе.
    Месяца через 3 ко мне в руки попал номер "ДК" целиком посвященный Linux, и я снова загорелся...
    На этот раз я решил идти до конца и ставить полноценную систему "рядом" с моей XP. Так как интернет у нас тогда только-только появлялся и стоил жутко дорого, то ссылки из журнала я даже и не открывал, а полез на провайдерский FTP-сервер в папку Linux. но вот беда - в ней наряду с дистрибутивами были и пакеты программ, и игры, и какие-то образы "срезов" (что это такое я тогда, естественно, ещё не знал), причем все это валялось в одной папке в жутком беспорядке. Тут мне на помощь снова пришел мой любимый журнал - я сделал скриншот FTP-клиента и отправил его на адрес обратной связи журнала, с просьбой разъяснить мне что есть что, и какой из имеющихся дистрибутивов лучше ставить новичку. Из редакции мне дали развернутый ответ, за что им огромное спасибо, и указали на Mandriva и openSUSE, как на самые дружелюбные дистрибутивы из списка. Вооружившись чистыми болванками я приступил к знакомству.
    Первым моим дистрибутивом был Mandriva. Встало все сразу и без проблем - я недоумевал, почему те "компьютерщики", с которыми я поделился своими намерениями, уверяли меня, что ставить Linux очень сложно, и что я "непременно запорю свой Windows", когда на самом деле всё оказалось так просто?
    Mandriva понравилась мне внешне, к тому же она очень походила на привычные "Окна". Возможно я бы и сейчас пользовался ей, если бы не одно НО - по неизвестным мне причинам система напрочь не воспринимала мою сетевую карту, а так как в Linux я был ещё совсем-совсем новичок, то решить эту проблему самостоятельно я не мог, а все те, кто хоть как то мог помочь, были вне досягаемости как раз из-за невозможности выйти в сеть. Поэтому отношения с Mandriva у меня не сложились, и я недолго думая вставил в привод диск с openSUSE 10.2.
    Установка SUSE также прошла без проблем, кстати в ней я выбрал по умолчанию в качестве DE GNOME (хотя потом я все же поставил вместо него KDE, пользователем которого являюсь и по сей день). openSUSE с GNOME резко отличался от Mandriva, но я довольно быстро освоился и мне стало очень удобно работать. Особенно понравился Yast - для новичка это находка, с помощью него я в два счёта поднял локальную сеть, а немного поискав в интернете (из Windows), смог быстро настроить VPN. Проблема с кодеками решилась подключением репозитория от Pacman-а, и я начал осваивать новую систему...
    Итог.
    А итог таков - openSUSE действительно качественный, а самое главное, дружелюбный к пользователю дистрибутив, с очень грамотным и отзывчивым сообществом и своим собственным стилем. YAST - очень удобный конфигуратор при переходе с Windows, А ещё плюсом системы по-моему является поддержка обеих ведущих DE.
    С тех самых пор openSUSE стоит или стоял на всех моих компьютерах, кстати на домашнем, который с тех времен не апгрейдился, до сих пор стоит связка Windows XP и openSUSE 10.2.
    На моем же компьютере в Петербурге стоит 32-х битная версия openSUSE 11.2 с KDE 4.4.3, а Windows я уже около полутора лет вижу только в университете или у соседей.
    a silhouette of a person's head and shoulders, used as a default avatar

    Ты помнишь, как всё начиналось...

    И так, моё знакомство с Linux состоялось году в 2006. В одном из стареньких, даже на тот момент, номеров журнала "Домашний компьютер". Этот журнал я брал в городской библиотеке, на руки давали номера полугодичной давности и старше, а свежие были доступны только в читальном зале или на платном абонементе.
    Пришествие первое. 
    В одном из номеров мое внимание привлекла статья с обзором операционной системы Knoppix. Эта система заинтересовала меня по двум причинам - во-первых это был "какой-то" Linux, и для меня - ещё начинающего пользователя ПК, было жутко любопытно посмотреть, что это такое; во-вторых эту систему даже не надо было устанавливать, так как все работало прямо с CD-ROM-а.
    Загоревшись этой идеей я принялся искать Knoppix, что в моей глухой провинции было далеко не простым делом... Не помню как, но я все же получил заветный диск и начал погружаться в новую систему. Поначалу все было интересно и необычно, но буквально через неделю (а то и меньше) мой запал кончился и мне стало скучно. Я вернул диск его владельцу, даже не сделав с него копии...
    Пришествие второе.
    Месяца через 3 ко мне в руки попал номер "ДК" целиком посвященный Linux, и я снова загорелся...
    На этот раз я решил идти до конца и ставить полноценную систему "рядом" с моей XP. Так как интернет у нас тогда только-только появлялся и стоил жутко дорого, то ссылки из журнала я даже и не открывал, а полез на провайдерский FTP-сервер в папку Linux. но вот беда - в ней наряду с дистрибутивами были и пакеты программ, и игры, и какие-то образы "срезов" (что это такое я тогда, естественно, ещё не знал), причем все это валялось в одной папке в жутком беспорядке. Тут мне на помощь снова пришел мой любимый журнал - я сделал скриншот FTP-клиента и отправил его на адрес обратной связи журнала, с просьбой разъяснить мне что есть что, и какой из имеющихся дистрибутивов лучше ставить новичку. Из редакции мне дали развернутый ответ, за что им огромное спасибо, и указали на Mandriva и openSUSE, как на самые дружелюбные дистрибутивы из списка. Вооружившись чистыми болванками я приступил к знакомству.
    Первым моим дистрибутивом был Mandriva. Встало все сразу и без проблем - я недоумевал, почему те "компьютерщики", с которыми я поделился своими намерениями, уверяли меня, что ставить Linux очень сложно, и что я "непременно запорю свой Windows", когда на самом деле всё оказалось так просто?
    Mandriva понравилась мне внешне, к тому же она очень походила на привычные "Окна". Возможно я бы и сейчас пользовался ей, если бы не одно НО - по неизвестным мне причинам система напрочь не воспринимала мою сетевую карту, а так как в Linux я был ещё совсем-совсем новичок, то решить эту проблему самостоятельно я не мог, а все те, кто хоть как то мог помочь, были вне досягаемости как раз из-за невозможности выйти в сеть. Поэтому отношения с Mandriva у меня не сложились, и я недолго думая вставил в привод диск с openSUSE 10.2.
    Установка SUSE также прошла без проблем, кстати в ней я выбрал по умолчанию в качестве DE GNOME (хотя потом я все же поставил вместо него KDE, пользователем которого являюсь и по сей день). openSUSE с GNOME резко отличался от Mandriva, но я довольно быстро освоился и мне стало очень удобно работать. Особенно понравился Yast - для новичка это находка, с помощью него я в два счёта поднял локальную сеть, а немного поискав в интернете (из Windows), смог быстро настроить VPN. Проблема с кодеками решилась подключением репозитория от Pacman-а, и я начал осваивать новую систему...
    Итог.
    А итог таков - openSUSE действительно качественный, а самое главное, дружелюбный к пользователю дистрибутив, с очень грамотным и отзывчивым сообществом и своим собственным стилем. YAST - очень удобный конфигуратор при переходе с Windows, А ещё плюсом системы по-моему является поддержка обеих ведущих DE.
    С тех самых пор openSUSE стоит или стоял на всех моих компьютерах, кстати на домашнем, который с тех времен не апгрейдился, до сих пор стоит связка Windows XP и openSUSE 10.2.
    На моем же компьютере в Петербурге стоит 32-х битная версия openSUSE 11.2 с KDE 4.4.3, а Windows я уже около полутора лет вижу только в университете или у соседей.