Sep 22 2010

Nvidia switch screen to HDMI with an hotkey

Tag: Computer World,Gentoo,Howtosjdoe @ 9:43 am

For those  who, like me, are stuck with the nvidia binary drivers on their laptops.

I use external HDMI quite often to connect to external monitors, both in office and at home. The gnome “Monitors” thing fails to detect monitors, so that I needed to clicki-clicki through nvidia-settings to enable/disable the external monitor.

Gnome Monitors with external monitor connected (and in use)

Where is my laptop panel??

Using nvidia-setting works, but requires at least 10-15 mouse clicks to enable the HDMI-attached one and disable the laptop panel. boring.

Disper

Disper is ??a switcher utility for nvidia cards. Works like a charm. I can switch to the laptop screen using disper -S and to the hdmi screen using disper -s. Cool. Keybinds Alt+F8 and CTRL+F8 is what I wanted.

Quick Howto

Download the code from launchpad or from tar

$ bzr branch lp:disper

then use cave to import in unpackaged

$ cd disper
$ make DESTDIR=/tmp/diper-root install
$ sudo chwon -R root:root /tmp/disper-root
$ sudo cave import -l /tmp/disper-root media-video/disper scm -x

At this point check if disper really works for you and how. Write down used commands

To enable keybindings, simply open gconf-editor, and then:

  • go to apps -> metacity ->keybinding_commands
  • Double click on command_1 and enter the command to enable the external monitor (in my case /usr/bin/disper -s)
  • Do the same for command_2 with the command to enable the laptop panel.
  • Go to ??apps -> metacity -> global_keybindings
  • Double click on command_1 and enter <Alt>+F8 (note, the <> are needed for special keys)
  • Double click on command_2 and enter <Ctrl>+F8
  • Done

Oct 25 2009

New ebuilds in the AQuoSA repository

Tag: Computer World,Gentoojdoe @ 11:53 am

There are some updates in the AQuoSA ebuild repository:

* aquosa-qosres and aquosa-qosmgr now have the -scm CVS ebuild

* two new ebuild: sys-kernel/deadline-sources and sys-process/schedtool-deadiline[1]

[1] SCHED_DEADLINE is an implementation of the popular Earliest Deadline First (EDF) scheduling algorithm or the Linux kernel. It is still experimental code, and it is still continuously being improved, but it already is a fully-working solution for supporting typical real-time applications in GNU/Linux environments. [read more]

[UPDATE 27/10/09]:  added two new ebuild for sys-kernel/aquosa-sources-2.6.32_rc5 and sys-apps/aquosa-qosres-1.3.0 (version bumps)

[UPDATE 28/10/09]: added ebuild for the sys-kernel/edfthrottling-sources.  Official description says:

This patchset introduces a group level EDF scheduler extending the
throttling mechanism, in order to make it support generic period
assignments.  With this patch, the runtime and period parameters
can be used to specify arbitrary CPU reservations for RT tasks.

[UPDATE 28/10/09]: added ebuild for sys-libs/libcgroup to work with cgroups when using deadline-sources or edfthrottling-sources


Oct 18 2009

Gentoo Backuppc (plus some other goodies) ebuild repository

Tag: Gentoojdoe @ 8:18 pm

While crawling bugs.gentoo.org today to find backuppc updated ebuilds (those in portage are rather old, 2.1.2 while last released version is 3.1.0) I’ve found a post of Lenno Nagel saying he has written an updated ebuild.
So I contacted him by mail (really a nice guy :) ), he gave me the repository subversion url and then I’ve tested his ebuilds.

Which work very well. The positive is that now I have a fully functional web interface, which was not with the old 2.1.2-r1 version.
The repository can be fetched with

svn co https://eudemon.infovorgud.ee/svn/utils/portage/

    Portage configuration:



# cd /usr/local/portage/
# svn co https://eudemon.infovorgud.ee/svn/utils/portage/ utils-overlay
# echo 'app-backup/backuppc ~*' >> /etc/portage/package.keywords

And added this line to /etc/make.conf:
PORTDIR_OVERLAY=”/usr/local/portage/utils-overlay”

    Paludis configuration


create a new file in /etc/paludis/repositories/ named utils-overlay.conf with the following content:

location = ${ROOT}/var/paludis/repositories/utils
sync = svn+https://eudemon.infovorgud.ee/svn/utils/portage/
master_repository = gentoo
format = ebuild
write_cache = /var/cache/paludis/metadata
names_cache = /var/cache/paludis/names

(change you paths as needed)

The sync the first time using
paludis --sync x-utils-overlay
then:
# echo 'app-backup/backuppc *' >> /etc/paludis/keywords.conf

Thanks again Lenno for your ebuilds :)


Oct 12 2009

Evolution: no components

Tag: Computer World,Gentoo,Software Liberojdoe @ 2:41 pm

If you are using gentoo, and after an evolution recompile/upgrade you end up with a situation like this

evolution fail

recompile evolution again, removing -Wl,-z,now from you LDFLAGS.


Sep 24 2009

Ebuild Repository for the AQuoSA project

I’ve been recently working, as part of my thesis, with the AQuoSA architecture.

Since I’m a gentoo user and no ebuild did exist (at least, I did not find them), I’ve created an ebuild repository.

To use it you need bzr installed, and yes, it’s *really* a good thing if you read the AQuoSA doc before installing any of these ebuilds.

$ bzr co http://bzr.cnglab.net/aquosa-repo

as of now included ebuilds are:

sys-kernel/aquosa-sources : full linux sources with generic scheduler patch
sys-apps/aquosa-qosres    : qres program and aquosa headers, plus the qresmod linux module and aquosa init script
sys-apps/aquosa-qosmgr    : qmgr program
www-apache/mod_reserve    : apache2 module to provide QoS thought the AQuoSA infrastructure
media-sound/jack-audio-connection-kit : as of now it's unrelated to AQuoSA, but it's a WIP ebuild for jack2 svn
                                        with support for the pipelining branch. This ebuild is based on the proaudio
                                        repository ebuild.

Please report back to me every problem you will (yes, you will :) ) encounter using these ebuilds.

Instructions for paludis:

create a aquosa.conf file in the /etc/paludis/repositories/ directory with the following content

location = ${ROOT}/var/paludis/repositories/aquosa
sync = bzr+http://bzr.cnglab.net/aquosa-repo
master_repository = gentoo
format = ebuild
write_cache = /var/cache/paludis/metadata
names_cache = /var/cache/paludis/names

obviously change the location path to match your system settings.

then do the first-time sync of the repository:

$ paludis --sync x-aquosa

Instructions for portage:

sorry, I don’t use portage since I switched to paludis, If someone wants to contribute install instructions for portage he/she is welcome.

location = ${ROOT}/var/paludis/repositories/aquosa
sync =
master_repository = gentoo
format = ebuild
write_cache = /var/cache/paludis/metadata
names_cache = /var/cache/paludis/names