GNU bug report logs - #39592
[PATCH] gnu: Add fbset.

Previous Next

Package: guix-patches;

Reported by: Tobias Geerinckx-Rice <me <at> tobias.gr>

Date: Thu, 13 Feb 2020 23:11:01 UTC

Severity: normal

Tags: patch

Done: Tobias Geerinckx-Rice <me <at> tobias.gr>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 39592 in the body.
You can then email your comments to 39592 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#39592; Package guix-patches. (Thu, 13 Feb 2020 23:11:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tobias Geerinckx-Rice <me <at> tobias.gr>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Thu, 13 Feb 2020 23:11:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: Add fbset.
Date: Fri, 14 Feb 2020 00:10:23 +0100
* gnu/packages/linux.scm (fbset): New public variable.
---
 gnu/packages/linux.scm | 56 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index b098567d24..3072b0f7d9 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -1275,6 +1275,62 @@ The Discordian calendar was made popular by the \"Illuminatus!\" trilogy
 by Robert Shea and Robert Anton Wilson.")
     (license license:public-domain)))
 
+(define-public fbset
+  (package
+    (name "fbset")
+    (version "2.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "http://users.telenet.be/geertu/Linux/fbdev/fbset-"
+                           version ".tar.gz"))
+       (sha256
+        (base32 "080wnisi0jq7dp0jcwdp83rq8q8s3kw41vc712516xbv4jq4mzs0"))))
+    (build-system gnu-build-system)
+    (arguments
+     '(#:modules ((guix build gnu-build-system)
+                  (guix build utils)
+                  (srfi srfi-26))
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure)            ; no configure script
+         (add-before 'install 'pre-install
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let ((out (assoc-ref outputs "out")))
+               (substitute* "Makefile"
+                 (("mknod ") "true ")
+                 ;; The Makefile doesn't honour PREFIX or similar.
+                 (("/usr") out))
+               (mkdir out)
+               (with-directory-excursion out
+                 (for-each mkdir-p (list "sbin"
+                                         "man/man5"
+                                         "man/man8")))
+               #t)))
+         (add-after 'install 'install-fb.modes
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (etc (string-append out "/etc")))
+               (for-each (cut install-file <> etc)
+                         (find-files "etc" "^fb\\.modes"))
+               (symlink "fb.modes.ATI"
+                        (string-append etc "/fb.modes"))
+               #t))))
+       ;; Parallel building races to create modes.tab.c.
+       #:parallel-build? #f
+       #:tests? #f))
+    (native-inputs
+     `(("bison" ,bison)
+       ("flex" ,flex)))
+    (home-page "http://users.telenet.be/geertu/Linux/fbdev/")
+    (synopsis "Show and modify Linux frame buffer settings")
+    (description
+     "The kernel Linux's @dfn{frame buffers} provide a simple interface to
+different kinds of graphic displays.  The @command{fbset} utility can query and
+change various device settings such as depth, virtual resolution, and timing
+parameters.")
+    (license license:gpl2)))
+
 (define-public procps
   (package
     (name "procps")
-- 
2.23.0





Information forwarded to guix-patches <at> gnu.org:
bug#39592; Package guix-patches. (Thu, 13 Feb 2020 23:32:02 GMT) Full text and rfc822 format available.

Message #8 received at 39592 <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: 39592 <at> debbugs.gnu.org
Subject: Re: [bug#39592] [PATCH] gnu: Add fbset.
Date: Fri, 14 Feb 2020 00:32:14 +0100
[Message part 1 (text/plain, inline)]
Tobias Geerinckx-Rice via Guix-patches via 写道:
> +       #:tests? #f))

; no test suite, of course.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#39592; Package guix-patches. (Fri, 14 Feb 2020 18:54:02 GMT) Full text and rfc822 format available.

Message #11 received at 39592 <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Tobias Geerinckx-Rice <me <at> tobias.gr>
Cc: 39592 <at> debbugs.gnu.org
Subject: Re: [bug#39592] [PATCH] gnu: Add fbset.
Date: Fri, 14 Feb 2020 13:53:31 -0500
Tobias Geerinckx-Rice <me <at> tobias.gr> writes:

> * gnu/packages/linux.scm (fbset): New public variable.
> ---
>  gnu/packages/linux.scm | 56 ++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 56 insertions(+)
>
> diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
> index b098567d24..3072b0f7d9 100644
> --- a/gnu/packages/linux.scm
> +++ b/gnu/packages/linux.scm
> @@ -1275,6 +1275,62 @@ The Discordian calendar was made popular by the \"Illuminatus!\" trilogy
>  by Robert Shea and Robert Anton Wilson.")
>      (license license:public-domain)))
>  
> +(define-public fbset
> +  (package
> +    (name "fbset")
> +    (version "2.1")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (string-append "http://users.telenet.be/geertu/Linux/fbdev/fbset-"
> +                           version ".tar.gz"))
> +       (sha256
> +        (base32 "080wnisi0jq7dp0jcwdp83rq8q8s3kw41vc712516xbv4jq4mzs0"))))
> +    (build-system gnu-build-system)
> +    (arguments
> +     '(#:modules ((guix build gnu-build-system)
> +                  (guix build utils)
> +                  (srfi srfi-26))
> +       #:phases
> +       (modify-phases %standard-phases
> +         (delete 'configure)            ; no configure script
> +         (add-before 'install 'pre-install
> +           (lambda* (#:key outputs #:allow-other-keys)
> +             (let ((out (assoc-ref outputs "out")))
> +               (substitute* "Makefile"
> +                 (("mknod ") "true ")
> +                 ;; The Makefile doesn't honour PREFIX or similar.
> +                 (("/usr") out))
> +               (mkdir out)
> +               (with-directory-excursion out
> +                 (for-each mkdir-p (list "sbin"
> +                                         "man/man5"
> +                                         "man/man8")))
> +               #t)))
> +         (add-after 'install 'install-fb.modes
> +           (lambda* (#:key outputs #:allow-other-keys)
> +             (let* ((out (assoc-ref outputs "out"))
> +                    (etc (string-append out "/etc")))
> +               (for-each (cut install-file <> etc)
> +                         (find-files "etc" "^fb\\.modes"))
> +               (symlink "fb.modes.ATI"
> +                        (string-append etc "/fb.modes"))
> +               #t))))
> +       ;; Parallel building races to create modes.tab.c.
> +       #:parallel-build? #f
> +       #:tests? #f))
> +    (native-inputs
> +     `(("bison" ,bison)
> +       ("flex" ,flex)))
> +    (home-page "http://users.telenet.be/geertu/Linux/fbdev/")
> +    (synopsis "Show and modify Linux frame buffer settings")
> +    (description
> +     "The kernel Linux's @dfn{frame buffers} provide a simple interface to
> +different kinds of graphic displays.  The @command{fbset} utility can query and
> +change various device settings such as depth, virtual resolution, and timing
> +parameters.")
> +    (license license:gpl2)))
> +
>  (define-public procps
>    (package
>      (name "procps")

Thanks, LGTM.

In my tests, I couldn't get it to resize dynamically my resolution, but
it might be useful to someone else.

Maxim




Reply sent to Tobias Geerinckx-Rice <me <at> tobias.gr>:
You have taken responsibility. (Sat, 15 Feb 2020 21:06:01 GMT) Full text and rfc822 format available.

Notification sent to Tobias Geerinckx-Rice <me <at> tobias.gr>:
bug acknowledged by developer. (Sat, 15 Feb 2020 21:06:02 GMT) Full text and rfc822 format available.

Message #16 received at 39592-done <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: 39592-done <at> debbugs.gnu.org
Subject: Re: [bug#39592] [PATCH] gnu: Add fbset.
Date: Sat, 15 Feb 2020 22:05:46 +0100
[Message part 1 (text/plain, inline)]
Maxim,

Maxim Cournoyer 写道:
> Thanks, LGTM.

Pushed as 96636e4910870906efb63f9e8890515c142bd941.

> In my tests, I couldn't get it to resize dynamically my 
> resolution, but
> it might be useful to someone else.

To document my experience: it successfully resized the logical 
viewport, but didn't actually change the resolution of my panel. 
Considering this thing was written in a time of CRTs and before 
KMS, that's not unreasonable & might require some custom EDID 
hackery to do that.

Thanks,

T G-R
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 15 Mar 2020 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 99 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.