Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
eee-control in Gentoo [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
XrateR
Apprentice
Apprentice


Joined: 18 Nov 2005
Posts: 164
Location: Sweden

PostPosted: Mon Nov 10, 2008 3:16 pm    Post subject: eee-control in Gentoo [solved] Reply with quote

Hello everyone,
I will go right to the point.
I want to follow this guide -> http://greg.geekmind.org/eee-control

Which need following modules:
* pygtk = in portage
* python-dbus = in portage (dbus-python)
* python-gconf = in portage (gcomf-python)
* pynotify = not in portage
* python-smbus = not in portage

My question is simply what I will need to similar two last modules?
(or if I need anything at all)

Edit: changed the title on enquire

\\ xrater


Last edited by XrateR on Tue Nov 11, 2008 5:09 pm; edited 2 times in total
Back to top
View user's profile Send private message
slackline
Veteran
Veteran


Joined: 01 Apr 2005
Posts: 1422
Location: /uk/sheffield

PostPosted: Mon Nov 10, 2008 3:45 pm    Post subject: Reply with quote

Code:

equery belongs pynotify
[ Searching for file(s) pynotify in *... ]
dev-python/notify-python-0.1.1-r1 (/usr/lib/python2.5/site-packages/gtk-2.0/pynotify)
equery belongs python-smbus
[ Searching for file(s) python-smbus in *... ]


Thus the first one is in portage and can be emerged with...

Code:

emerge -av dev-python/notify-python


The second one is more problematic, a search on \\\'python-smbus ebuild\\\' doesn\\\'t lead to anything useful. But \\\'python-smbus gentoo\\\' led to the following page which has an ebuild that you could use in a local overlay http://wiki.erazor-zone.de/wiki:projects:linux:gentoo#dev-python_py-smbus although you may well want to bump the version up and looking at the ebuild itself correct the HOMEPAGE/SRC_URI fields.

slack
_________________
"Science is what we understand well enough to explain to a computer.  Art is everything else we do." - Donald Knuth
Back to top
View user's profile Send private message
XrateR
Apprentice
Apprentice


Joined: 18 Nov 2005
Posts: 164
Location: Sweden

PostPosted: Mon Nov 10, 2008 4:12 pm    Post subject: Reply with quote

Thanks for the help slack---line!

I wounder if something similar to eee-control will come to
portage in some time.


\\ xrater
Back to top
View user's profile Send private message
slackline
Veteran
Veteran


Joined: 01 Apr 2005
Posts: 1422
Location: /uk/sheffield

PostPosted: Mon Nov 10, 2008 4:36 pm    Post subject: Reply with quote

It\'ll come when someone writes an ebuild for it. Worth keeping an eye on the python overlays that exist (main one is pythonhead I think).

Hope you get something working anyway.

slack
_________________
"Science is what we understand well enough to explain to a computer.  Art is everything else we do." - Donald Knuth
Back to top
View user's profile Send private message
lxg
Veteran
Veteran


Joined: 12 Nov 2005
Posts: 1019
Location: Aachen, Germany

PostPosted: Tue Nov 11, 2008 11:24 am    Post subject: Reply with quote

Funny coincidence, I've been working on an ebuild for this package in the last days:

http://www.zirona.com/misc/code/eee-control/README.gentoo
http://www.zirona.com/misc/code/eee-control/eee-control-0.7.3.ebuild

Most things work, but I still have some issues. This may be due to the fact that I'm using KDE instead of Gnome.

Please do read the README(!!!), then install the ebuild, and let's discuss here how your experience is! :D

Btw, as for py-smbus, have a look here: https://bugs.gentoo.org/show_bug.cgi?id=246182
_________________
lxg.de – codebits and tech talk
Back to top
View user's profile Send private message
Serenity
n00b
n00b


Joined: 11 Nov 2008
Posts: 2

PostPosted: Tue Nov 11, 2008 11:29 am    Post subject: Reply with quote

When I have such issues I just install/uninstall software using autotools. Writing ebilds maybe a a better option, though.
Back to top
View user's profile Send private message
slackline
Veteran
Veteran


Joined: 01 Apr 2005
Posts: 1422
Location: /uk/sheffield

PostPosted: Tue Nov 11, 2008 11:36 am    Post subject: Reply with quote

[quote=\"Serenity\"]When I have such issues I just install/uninstall software using autotools. Writing ebilds maybe a a better option, though.[/quote]

That won\'t leave your system very sane from a \"Gentoo\" perspective.

Portage has been developed for a reason, some people prefer an alternative such as Paludis, but you really shouldn\'t install manually system wide cleaning up afterwards is a royal pain in the arse.

slack
_________________
"Science is what we understand well enough to explain to a computer.  Art is everything else we do." - Donald Knuth
Back to top
View user's profile Send private message
Serenity
n00b
n00b


Joined: 11 Nov 2008
Posts: 2

PostPosted: Tue Nov 11, 2008 11:45 am    Post subject: Reply with quote

Unless you create that pain yourself, it works pretty well. Just type make uninstall and autotools will take care of the rest. Of course, portage should be used wherever possible, but sometimes you just have no time to hack those ebuilds, so the knowledge of autotools may be useful too.
Back to top
View user's profile Send private message
lxg
Veteran
Veteran


Joined: 12 Nov 2005
Posts: 1019
Location: Aachen, Germany

PostPosted: Tue Nov 11, 2008 11:50 am    Post subject: Reply with quote

Here is my own experience with the eee-control and the ebuild so far (in KDE on a 901!):

- FSB stepping appears to work
- Audio Fn7/8/9 doesn't work. When invoking the eee-control-damon with -V (not using the init script), I see the action triggered, but it doesn't change the volume.
- Defining actions for soft (Fn) and hard (the four silver ones) hotkeys works
- Activating WLAN, Camera, Cardreader appears to work; at least the values in /sys/devices/platform/eeepc/{wlan,cardr,camera} change. I also see ra0 going up and down. However, when activating the camera, the green light doesn't go on. I would like to test if the camera runs anyway, but I don't know how.
- Bluetooth on/of doesn't appear to work; I'm currently investigating this, but the error seems to be on my side; as I'm missing /sys/devices/platform/eeepc/bt, and /sys/class/rfkill/ does exist, but is empty. But BT does work; hciconfig manages the device perfectly, and I can scan, pair, etc. with other BT devices.
- Some features that depend on gnome-power-manager don't work, but that's of course because it isn't installed.

How about your experiences, especially the gnome people?
- Does the ebuild install cleanly?
- Does the tool work on other EeePCs?
- What kernel config do you use (please pastbin), I'm especially interested if I can optimize my setup for the 901
- Which features do work, which don't?

P.S.: By the way, maybe we could rename this thread to something as "eee-control in Gentoo"? I think there is much interest in this tool, and changing the subject would get more people to participate.
_________________
lxg.de – codebits and tech talk
Back to top
View user's profile Send private message
slackline
Veteran
Veteran


Joined: 01 Apr 2005
Posts: 1422
Location: /uk/sheffield

PostPosted: Tue Nov 11, 2008 12:40 pm    Post subject: Reply with quote

[quote=\"Serenity\"]Unless you create that pain yourself, it works pretty well. Just type make uninstall and autotools will take care of the rest. Of course, portage should be used wherever possible, but sometimes you just have no time to hack those ebuilds, so the knowledge of autotools may be useful too.[/quote]

Fine, but you then have to do that for all of the libraries and dependencies that a given package required and aren\'t in portage, so its a lot of work. Thats why I left Slackware years ago in favour of Gentoo.

Using portage if I want to remove a package and its dependencies its as simple as...

Code:

emerge -C foobar && emerge --depclean


Significantly less work ;)

Keeping the \"system\" clean would be a lot easier if you were to only install to your users ~/ when installing using autotools.

To some extent its horses for courses, but Gentoo\'s best feature (besides the dev/community) is IMHO portage and it should be used.
_________________
"Science is what we understand well enough to explain to a computer.  Art is everything else we do." - Donald Knuth
Back to top
View user's profile Send private message
greg_
n00b
n00b


Joined: 11 Nov 2008
Posts: 3

PostPosted: Tue Nov 11, 2008 1:49 pm    Post subject: Reply with quote

Hi,

I'm the developer of eee-control.

lxg wrote:
- Audio Fn7/8/9 doesn't work. When invoking the eee-control-damon with -V (not using the init script), I see the action triggered, but it doesn't change the volume.

eee-control only inserts keycodes for standard media keys into the kernel. You have to run a program to react to these keystrokes.

Quote:
- Activating WLAN, Camera, Cardreader appears to work; at least the values in /sys/devices/platform/eeepc/{wlan,cardr,camera} change. I also see ra0 going up and down. However, when activating the camera, the green light doesn't go on. I would like to test if the camera runs anyway, but I don't know how.
- Bluetooth on/of doesn't appear to work; I'm currently investigating this, but the error seems to be on my side; as I'm missing /sys/devices/platform/eeepc/bt, and /sys/class/rfkill/ does exist, but is empty. But BT does work; hciconfig manages the device perfectly, and I can scan, pair, etc. with other BT devices.

It's normal that the camera LED doesn't switch on, since it only will be activated when you use the camera. Try it with "mplayer -fps 30 tv://", for example. About the bluetooth issue, it's a bug in the eeepc_laptop driver that is shipped with 2.6.27. The Ubuntu kernel from array.org includes a patch to fix that.
http://array.org/ubuntu/eeepc-laptop.html

By the way, does the alternate fan control work correctly for you?


Last edited by greg_ on Tue Nov 11, 2008 2:02 pm; edited 1 time in total
Back to top
View user's profile Send private message
lxg
Veteran
Veteran


Joined: 12 Nov 2005
Posts: 1019
Location: Aachen, Germany

PostPosted: Tue Nov 11, 2008 2:01 pm    Post subject: Reply with quote

Hi Greg

nice to meet you here! And please ignore signatures that are pejorative towards Ubuntu. ;)

greg_ wrote:
eee-control only inserts keycodes for standard media keys into the kernel. You have to run a program to react to these keystrokes.


Yes, I should have pointed once more out that this most likely due to me running KDE and/or missing a special app to handle this.

greg_ wrote:
It's normal that you don't see the camera LED, since it only will be activated when you use the camera. Try it with "mplayer -fps 30 tv://", for example.


Ah, good to know! That does work, mplayer shows me (ugh!) and turns the LED on. And mplayer (correctly) fails when I deactivate the cam in the eee-control tray.

greg_ wrote:
About the bluetooth issue, it's a bug in the eeepc_laptop driver that is shipped with 2.6.27. The Ubuntu kernel from array.org includes a patch to fix that.


Good to know, thanks. I'll file a bug report for Gentoo to include this patch. (edit: done)

greg_ wrote:
By the way, does the alternate fan control work correctly for you?


How can I test this reliably?
_________________
lxg.de – codebits and tech talk


Last edited by lxg on Tue Nov 11, 2008 2:22 pm; edited 1 time in total
Back to top
View user's profile Send private message
greg_
n00b
n00b


Joined: 11 Nov 2008
Posts: 3

PostPosted: Tue Nov 11, 2008 2:04 pm    Post subject: Reply with quote

At the moment you can't -- sorry! You can only verify that the fan runs a bit slower than with the standard fan control and with smoother transitions under load. I will include an interface to query temperature and fan speed/rpm in the next version.
Back to top
View user's profile Send private message
XrateR
Apprentice
Apprentice


Joined: 18 Nov 2005
Posts: 164
Location: Sweden

PostPosted: Tue Nov 11, 2008 4:58 pm    Post subject: Reply with quote

I'm glad to see how much this thread have give me.
Thanks guys, I think I will try the ebuild soon.

But first I just must ask you guys another question.
- How do you get a indicator for your battery? (I run KDE 4.1)
I have try but with out success.
- And the same thing for ra0?
No one of the apps I have try have work.

But thanks once again for all info! :)

\\ xrater
Back to top
View user's profile Send private message
lxg
Veteran
Veteran


Joined: 12 Nov 2005
Posts: 1019
Location: Aachen, Germany

PostPosted: Tue Nov 11, 2008 5:05 pm    Post subject: Reply with quote

You mean the battery icon in the screenshot? This is easy: right-click on the desktop, click "Add widgets", then pick the battery monitor.

As for the WLAN driver, there is an official one at the ralink website. But it's a bit awkward to compile. If you don't figure it out, please open another thread in a different subforum ("Kernel & Hardware" should be appropriate), then PM me, and I'll post a Howto.

Btw, would it be possible that you change the topic of this thread to something more adequate (see above)? Thanks.
_________________
lxg.de – codebits and tech talk
Back to top
View user's profile Send private message
XrateR
Apprentice
Apprentice


Joined: 18 Nov 2005
Posts: 164
Location: Sweden

PostPosted: Tue Nov 11, 2008 5:17 pm    Post subject: Reply with quote

It's changed. :)
My wireless network is working like a charm.
So thats not the problem. It's just that no apps (like waveselect) show anything.
But the widget for the battery just show n/a so perhaps I need someting more in my kernel.

\\ xrater
Back to top
View user's profile Send private message
lxg
Veteran
Veteran


Joined: 12 Nov 2005
Posts: 1019
Location: Aachen, Germany

PostPosted: Tue Nov 11, 2008 5:28 pm    Post subject: Reply with quote

I also see "n/a" while the battery is removed (I always remove the battery when attached to a powerline). But I do see the charging state when the battery is inserted. However, unfortunately I don't remember what kernel setting it is or could be. You might try my kernel config, especially if you have a 901.
_________________
lxg.de – codebits and tech talk
Back to top
View user's profile Send private message
XrateR
Apprentice
Apprentice


Joined: 18 Nov 2005
Posts: 164
Location: Sweden

PostPosted: Tue Nov 11, 2008 5:36 pm    Post subject: Reply with quote

haha, I didn't do anything but now it works! :P
how ever, maybe this is oftopic but I still wonder how you
config your ra0 network to be "up" on boot and to show up
on apps like waveselect or something else.

\\ xrater
Back to top
View user's profile Send private message
lxg
Veteran
Veteran


Joined: 12 Nov 2005
Posts: 1019
Location: Aachen, Germany

PostPosted: Tue Nov 11, 2008 5:42 pm    Post subject: Reply with quote

I personally don't want it up at boot, but if you want that, you can do it by adding an entry in modules.autoload.d and adding net.ra0 to your default runlevel. I think there are plenty of docs and existing discussions about this.

Btw, I think I should ask a moderator to split this topic, so there can be a separate discussion about the ebuild. ;)
_________________
lxg.de – codebits and tech talk
Back to top
View user's profile Send private message
XrateR
Apprentice
Apprentice


Joined: 18 Nov 2005
Posts: 164
Location: Sweden

PostPosted: Tue Nov 11, 2008 5:49 pm    Post subject: Reply with quote

ture. sounds like a good idé but I will not need more help now
so we can continue to discuss the ebuild now. :)
Back to top
View user's profile Send private message
lxg
Veteran
Veteran


Joined: 12 Nov 2005
Posts: 1019
Location: Aachen, Germany

PostPosted: Fri Nov 14, 2008 12:31 pm    Post subject: Reply with quote

I've opened another thread, dedicated solely to the discussion of the eee-control ebuild: https://forums.gentoo.org/viewtopic-p-5280572.html
_________________
lxg.de – codebits and tech talk
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Mon Nov 17, 2008 12:55 pm    Post subject: Reply with quote

Moved from Portage & Programming to Unsupported Software.

Not in portage, so moved here.
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum