unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#39592] [PATCH] gnu: Add fbset.
@ 2020-02-13 23:10 Tobias Geerinckx-Rice via Guix-patches via
  2020-02-13 23:32 ` Tobias Geerinckx-Rice via Guix-patches via
  2020-02-14 18:53 ` Maxim Cournoyer
  0 siblings, 2 replies; 4+ messages in thread
From: Tobias Geerinckx-Rice via Guix-patches via @ 2020-02-13 23:10 UTC (permalink / raw)
  To: 39592

* 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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#39592] [PATCH] gnu: Add fbset.
  2020-02-13 23:10 [bug#39592] [PATCH] gnu: Add fbset Tobias Geerinckx-Rice via Guix-patches via
@ 2020-02-13 23:32 ` Tobias Geerinckx-Rice via Guix-patches via
  2020-02-14 18:53 ` Maxim Cournoyer
  1 sibling, 0 replies; 4+ messages in thread
From: Tobias Geerinckx-Rice via Guix-patches via @ 2020-02-13 23:32 UTC (permalink / raw)
  To: 39592

[-- Attachment #1: Type: text/plain, Size: 110 bytes --]

Tobias Geerinckx-Rice via Guix-patches via 写道:
> +       #:tests? #f))

; no test suite, of course.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#39592] [PATCH] gnu: Add fbset.
  2020-02-13 23:10 [bug#39592] [PATCH] gnu: Add fbset Tobias Geerinckx-Rice via Guix-patches via
  2020-02-13 23:32 ` Tobias Geerinckx-Rice via Guix-patches via
@ 2020-02-14 18:53 ` Maxim Cournoyer
  2020-02-15 21:05   ` bug#39592: " Tobias Geerinckx-Rice via Guix-patches via
  1 sibling, 1 reply; 4+ messages in thread
From: Maxim Cournoyer @ 2020-02-14 18:53 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: 39592

Tobias Geerinckx-Rice <me@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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#39592: [PATCH] gnu: Add fbset.
  2020-02-14 18:53 ` Maxim Cournoyer
@ 2020-02-15 21:05   ` Tobias Geerinckx-Rice via Guix-patches via
  0 siblings, 0 replies; 4+ messages in thread
From: Tobias Geerinckx-Rice via Guix-patches via @ 2020-02-15 21:05 UTC (permalink / raw)
  To: Maxim Cournoyer; +Cc: 39592-done

[-- Attachment #1: Type: text/plain, Size: 534 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-02-15 21:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-13 23:10 [bug#39592] [PATCH] gnu: Add fbset Tobias Geerinckx-Rice via Guix-patches via
2020-02-13 23:32 ` Tobias Geerinckx-Rice via Guix-patches via
2020-02-14 18:53 ` Maxim Cournoyer
2020-02-15 21:05   ` bug#39592: " Tobias Geerinckx-Rice via Guix-patches via

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).