Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86566 - app-laptops/pbbuttonsd works on x86
Summary: app-laptops/pbbuttonsd works on x86
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 87222
  Show dependency tree
 
Reported: 2005-03-24 12:52 UTC by Josh Nichols (RETIRED)
Modified: 2005-08-10 17:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
diff of the ebuild i used to build on x86 (pbbuttonsd-0.6.7.diff,1.06 KB, patch)
2005-03-24 18:20 UTC, Josh Nichols (RETIRED)
Details | Diff
pbbuttonsd-0.6.7.ebuild (pbbuttonsd-0.6.7.ebuild,1.17 KB, text/plain)
2005-03-30 00:00 UTC, Josh Nichols (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Josh Nichols (RETIRED) gentoo-dev 2005-03-24 12:52:22 UTC
According to pbbuttonsd has some support for x86 laptops.An variable LAPTOP needs to be passed to configure to specify the architecture, and some parts of the /etc/pbbuttons.conf need to be commented out to reflect that powermanagement isn't supported yet.

Reproducible: Always
Steps to Reproduce:
Comment 1 Olivier Crete (RETIRED) gentoo-dev 2005-03-24 14:30:32 UTC
Which x86 laptop would it work with ? Those kind of things normally vary between manufacturers...
Comment 2 Josh Nichols (RETIRED) gentoo-dev 2005-03-24 17:49:23 UTC
The only thing pbbuttonsd really handles for x86 is mapping key bindings to actually do things, like volume management with volume keys.

I'm using it on my dell inspiron 9200 at the moment to do change the volume, combined with gtkpbbuttonsd (which also seems to work fine on x86) to display the volume in my xsession. My volume keys aren't hardware based, but have keycodes associated with them, so using pbbuttons makes sense in my case. If a laptop has hardware-based volume keys, then it wouldn't be so useful. For example, my brightness keys are hardwared-based, and don't have keycodes, so I don't think I'll be able to use pbbuttonsd to manage the brightness.
Comment 3 Josh Nichols (RETIRED) gentoo-dev 2005-03-24 18:20:56 UTC
Created attachment 54401 [details, diff]
diff of the ebuild i used to build on x86

The method I used to determine the architecture is a bit hackish, so I'm sure
there's a cleaner way of determining it.
Comment 4 Olivier Crete (RETIRED) gentoo-dev 2005-03-27 16:25:26 UTC
the right way to do this is

local myconf

use x86 && myconf="LAPTOP=i386"
use ppc && myconf=LAPTOP=i386"

econf ${myconf}

or something like that
The keywords guarantee that it wont be built on other arches anyway.
Comment 5 Josh Nichols (RETIRED) gentoo-dev 2005-03-30 00:00:44 UTC
Created attachment 54823 [details]
pbbuttonsd-0.6.7.ebuild

An ebuild for pbbuttonsd which makes use of the suggestion by Oliver for
determining the arch, instead of the messy way I had previously.
Comment 6 Olivier Crete (RETIRED) gentoo-dev 2005-08-10 17:59:43 UTC
alright, marking it ~x86 on behalf of the ghost x86 team