aboutsummaryrefslogtreecommitdiffstats
path: root/debian/control
blob: 2df01493237fa8e009652df9cf413a8b24a11ab7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Source: lcd4linux
Section: utils
Priority: extra
Maintainer: Samuel Mimram <samuel.mimram@ens-lyon.org>
Build-Depends: debhelper (>= 4.0.0), xlibs-dev
Standards-Version: 3.6.0

Package: lcd4linux
Architecture: any
Depends: xlibs, ${shlibs:Depends}
Description: Display informations on an external liquid crystal display
 Grab informations from the kernel and some subsystems and display it on an
 external liquid crystal display.
 .
 The use of special sequences (tokens) gives you full control of the layout,
 and therefore lcd4linux is completely independent from the display size.
n> #include <sys/ioctl.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <linux/dvb/frontend.h> int main (int argc, char **argv) { char *fedev = "/dev/dvb/adapter0/frontend0"; int fd, r; if (argc != 2 || (strcmp(argv[1], "13") && strcmp(argv[1], "18"))) { fprintf (stderr, "usage: %s <13|18>\n", argv[0]); return -1; } if (getenv("FRONTEND")) fedev = getenv("FRONTEND"); printf("setvoltage: using '%s'\n", fedev); if ((fd = open (fedev, O_RDWR)) < 0) perror ("open"); if (strcmp(argv[1], "13") == 0) r = ioctl (fd, FE_SET_VOLTAGE, SEC_VOLTAGE_13); else r = ioctl (fd, FE_SET_VOLTAGE, SEC_VOLTAGE_18); if (r == -1) perror ("ioctl FE_SET_VOLTAGE"); close (fd); return 0; }