vbetool uses lrmi in order to run code from the video BIOS. Currently, it is able to alter DPMS states, save/restore video card state and attempt to initialize the video card from scratch. Which seems to be useful for laptops when resuming from suspend. I'd have atempted an ebuild myself, but the compilation fails due to unfound pciutils. Although I have that installed. the homepage is http://www.srcf.ucam.org/~mjg59/vbetool/ also see http://packages.debian.org/testing/utils/vbetool
please attach your attempt
I simply tried the usual configure;make;make install alexf@tosh ~/temp $ tar xzf vbetool_0.2.orig.tar.gz alexf@tosh ~/temp $ cd vbetool-0.2/ alexf@tosh ~/temp/vbetool-0.2 $ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 configure: creating ./config.status config.status: creating Makefile config.status: executing depfiles commands alexf@tosh ~/temp/vbetool-0.2 $ LANG=C make if gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKA GE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"vbetool\" -DVERSION=\"0.2\" -I. -I. -g -Wall -Werror -pedantic -g -O2 -MT vbetool.o -MD -MP -MF ".deps/v betool.Tpo" \ -c -o vbetool.o `test -f 'vbetool.c' || echo './'`vbetool.c; \ then mv -f ".deps/vbetool.Tpo" ".deps/vbetool.Po"; \ else rm -f ".deps/vbetool.Tpo"; exit 1; \ fi if gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKA GE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"vbetool\" -DVERSION=\"0.2\" -I. -I. -g -Wall -Werror -pedantic -g -O2 -MT lrmi.o -MD -MP -MF ".deps/lrmi .Tpo" \ -c -o lrmi.o `test -f 'lrmi.c' || echo './'`lrmi.c; \ then mv -f ".deps/lrmi.Tpo" ".deps/lrmi.Po"; \ else rm -f ".deps/lrmi.Tpo"; exit 1; \ fi gcc -g -Wall -Werror -pedantic -g -O2 -lpci -o vbetool vbetool.o lrmi.o vbetool.o(.text+0x1d0): In function `do_post': /home/alexf/temp/vbetool-0.2/vbetool.c:180: undefined reference to `pci_scan_bus ' vbetool.o(.text+0x1ed):/home/alexf/temp/vbetool-0.2/vbetool.c:183: undefined ref erence to `pci_read_word' vbetool.o(.text+0x672): In function `main': /home/alexf/temp/vbetool-0.2/vbetool.c:47: undefined reference to `pci_alloc' vbetool.o(.text+0x686):/home/alexf/temp/vbetool-0.2/vbetool.c:49: undefined refe rence to `pci_init' collect2: ld returned 1 exit status make: *** [vbetool] Error 1
$ equery list pciutils [ Searching for package 'pciutils' in all categories among: ] * installed packages [I--] [ ] sys-apps/pciutils-2.1.11-r4 (0)
alex f: please attach your attempted ebuild.
I said that I _would have_ attempted to make an ebuild, but didn't see the point after it didn't compile in the first place.
Created attachment 52183 [details] vbetool-0.2.ebuild Alright, after reading the gcc manpage I found the compilation problem and fixed it. So here is the ebuild. I think app-misc or app-laptop might be appropiate categories for it.
I have had an ebuild for this sitting in my overlay at http://dev.gentoo.org/~brix/files/overlay/sys-apps/vbetool/ for a while...
Both the ebuild by Alex and vbetool work fine for me, thanks.
in cvs now.