-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
framework 16 slot labels, img auto title from alt text
- Loading branch information
1 parent
14286a0
commit 955eebc
Showing
25 changed files
with
1,727 additions
and
52 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
--- | ||
title: "Label Printer Fun for the Framework 16" | ||
date: 2024-04-30T23:43:51-04:00 | ||
tags: ["featured"] | ||
--- | ||
|
||
## TL;DR | ||
The framework 16's six expansion card slots have different capabilities, for example some can do display out, and some draw more power with a USB-A expansion card. I kept having to look up the compatibility info in the user guide, so instead I printed some handy-dandy stickers with my label printer and attached them to the bottom of the laptop. | ||
|
||
 | ||
|
||
## Adapting the Images | ||
The [official framework 16 guide](https://knowledgebase.frame.work/en_us/expansion-card-slot-functionality-on-framework-laptop-16-rkUjGm7cn) has an image of what expansion card slots support what features. However, it's a bit too wide for my Brother QL-800 label printer, and a bit low resolution. | ||
 | ||
|
||
So I decided to redraw it in inkscape to fix both of these problems. But first I made a mockup in krita by just selecting and moving parts of the image to get an idea of what I wanted the final to look like. Notice the "Charging" was changed to "Charge" to fit within the smaller width boxes. | ||
 | ||
<style> | ||
img { | ||
background-color: white; | ||
} | ||
</style> | ||
|
||
Then I used inkscape to make more accurate SVG vector drawings, using the draft image as a guide. I even looked at the exact coordinates and size of the boxes to line them up perfectly, as well as using inkscape's built-in alignment features. I also flipped the 3 labels that would be on the right, to make it more symmetrical. | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
|
||
Lastly I went the extra mile and designed a label that would explain what the "!" on the USB-A ports meant, even though that is easy enough for me to remember. | ||
 | ||
|
||
You can download [this zip file](/blog/files/framework16-slot-compatibility.zip) with all the SVG's and PNG's if you want to print your own. | ||
|
||
## Printing the Label Stickers | ||
Printing with the QL-800 is a bit quirky on Linux. First, set up a python virtual environment and install the brother_ql library and dependencies. You only have to do this once: | ||
```bash | ||
mkdir QL-800-print | ||
cd QL-800-print | ||
python3 -m venv .venv | ||
source .venv/bin/activate | ||
pip install pillow==9.5.0 brother_ql | ||
``` | ||
|
||
Then you can run this anytime you want to print. Put this part in a script, I just called it `print.sh`. Put it in the same directory as the .venv that you created earlier: | ||
```bash | ||
#!/bin/bash | ||
source `dirname $0`/.venv/bin/activate | ||
printer=`ls /dev/usb/lp*` | ||
sudo chmod 777 "$printer" | ||
export BROTHER_QL_MODEL=QL-800 | ||
export BROTHER_QL_PRINTER=file://"$printer" | ||
brother_ql print -l 62 --red $@ | ||
``` | ||
|
||
Note: when attaching the labels, make sure to account for the fact that the reference image in the guide is show when viewed from the top, and it will be reversed when viewed from the bottom. | ||
|
||
## Final Result | ||
 | ||
|
||
 | ||
 | ||
 | ||
|
||
 | ||
|
||
Thanks for reading, if you do this yourself let me know [on mastodon](https://fosstodon.org/@johanv) or by [email](https://johanv.net/contact/)! |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+56.2 KB
...t/blog/images/framework16-slot-compatibility/framework16-slot-compatibility.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
164 changes: 164 additions & 0 deletions
164
content/blog/images/framework16-slot-compatibility/power-warning.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.