I'm making a yocto image which I'm booting from a usb stick using syslinux. There's a lot of boot output that I'd like to hide. From reading the yocto docs it looks like adding a splash screen should hide this. I have added splash to the IMAGE_FEATURES, but the splash screen doesn't appear, and the syslinux boot output is still visible. Any idea what I may be doing wrong? Other suggestions on how to hide that boot output also welcome.
To add splash screen into the image, in your local.conf, add
IMAGE_INSTALL_append = " psplash"
The psplash recipe is in /poky/meta/recipes-core/psplash.
Another option is to create core-image-full-cmdline which will have psplash in it.
Edit: If you want to modify the psplash screen, git clone git://git.yoctoproject.org/psplash
have a .png image of yours with the same screen dimension
go to the psplash directory and find make-image-header.sh
$./make-image-heaer.sh <your-image>.png POKY_IMG
Note that I used POKY_IMG is because I want to replace the newly created psplash files in poky/meta/recipes-core/psplash/files/psplash-poky-img.h
There is also another psplash in poky/meta-yocto/recipes-core/psplash. This one is psplash_git.bbappend which will override the one in /poky/meta/recipes-core/psplash.
In psplash_git.bbappend, after you have added your my-splash-img.h to the file directory, you could add SPLASH_IMAGES = "file://my-splash-img.h;outsuffic=default" for it to choose your splash image.
To change color of the background, bar, etc. you will need to go to ${WORKDIR}/psplash/git/psplash-colors.h. The color is in hex. After you have done, create a patch file to use it for next time compile.
On some platforms like the Amlogic S905 SOC the OSD layer has a default transparency because it is intended to overlay a video. What is used for example in STB boxes. So you may have to set the transparency for each pixel
From 01cf2069631609b6a9a17fe087cf96925f9ac546 Mon Sep 17 00:00:00 2001
From: Christian Ege <k4230r6#gmail.com>
Date: Sat, 20 Aug 2016 10:37:53 +0200
Subject: [PATCH] Manage transparency to each 32 bit pixel in RGB888
Otherwise we'll have a black screen instead of a boot splash
Signed-off-by: Christian Ege <k4230r6#gmail.com>
---
psplash-fb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/psplash-fb.c b/psplash-fb.c
index 38cd6a4..6ca8006 100644
--- a/psplash-fb.c
+++ b/psplash-fb.c
## -308,7 +308,7 ## psplash_fb_plot_pixel (PSplashFB *fb,
break;
case 32:
*(volatile uint32_t *) (fb->data + off)
- = (red << 16) | (green << 8) | (blue);
+ = (0xFF << 24) | (red << 16) | (green << 8) | (blue);
break;
case 16:
--
2.7.4
For more details check the following github issue.
Related
This code inserts a table and tries to center it:
Sub Macro1()
wtrows = 4
wtcols = 3
Set tbl = ActiveDocument.Tables.Add(Selection.Range, wtrows, wtcols)
tbl.Rows.Alignment = wdAlignRowCenter '' centre entire table
For i = 1 To wtrows
For j = 1 To wtcols
tbl.Rows(i).Cells(j).Range.Text = 999
tbl.Columns(j).Cells.Width = CentimetersToPoints(2)
Next
Next
End Sub
However, the table appears as left-aligned. If I select the table then Ribbon | Home | Paragraph has the Centered toggle button selected (which does not match the appearance). If I force a manual refresh by Control Home/End or toggling Show/Hide Paragraph Marks at Ribbon | Home then the table now appears correctly as centered.
I've tried by code to provoke a full refresh (eg adjust a margin) but nothing works.
How can I force the display to match the table properties?
And any advice on why this is happening?
Word version is 365 MSO (Version 2204 Build 16.0.15128.20210) 64-bit, running on latest Win10.
Thanks.
I have 8 different workspaces defined in ~/.i3/config:
set $workspace1_name 1:www
set $workspace2_name 2:programming
set $workspace3_name 3:communication
set $workspace4_name 4:files+dictionary
set $workspace5_name 5:documents
set $workspace6_name 6:graphics
set $workspace7_name 7:virtualization
set $workspace8_name 8:music
I also have 2 screens. When I start i3 on my Linux start-up, each screen shows a different workspace. The right screen is showing workspace 2:programming, but the left screen shows empty workspace 1 (not 1:www).
How can I configure i3 so that the left screen shows properly named workspace 1:www instead of 1?
According to the doc, the syntax is
workspace <workspace> output <output>
where output is the name of the RandR output you attach your screen to.
You can use one of the following RandR commands to get the output value
xrandr --current
# or if your X server supports RandR 1.5
xrandr --listmonitors
So, as an example (for my current dual screen set-up) the configuration should look like this
workspace "1: www" output DP-1
I am trying to delete a file from the first blank line to the end of a .txt file. I am using the following line of code:
sed -i -b '/^$/,$d'
(taken almost directly from Unix Power Tools). In a multi-page document, this successfully deletes the second page of text, but still leaves the footer on the first page(see below *text slightly modified for space):
29 0235600 Drain Pan
62 6151060 Nut, Serrated 5/16-18 Hex
7003932
30 6201920 Screw, 8-15X2 6-Lobe PH
W/H Network Svce
63
64 7003931 W/H Network Svce
4
# 1 - Revision D - February, 2007
375844
Previous Page Main Menu Model 648PRO Menu Next Page
I am using GNU sed version 4.2.1
Any suggestions please.
Those things at the end (CR/LF) are DOS style end-of-line characters. I don't know why the -b option isn't coping with them, but you can try this kludge:
sed -i '/^.$/,$d'
Is it possible to make Eclipse place the new opened editor tab next to the currently active one?
Until the tab row is full, eclipse places the new tab on the first free position, which is acceptable. When the row gets full, eclipse chooses to hide the LRU tab, which is acceptable, too. But it places the new tab on the position freed this way, which is from the user's POV a completely random position. Extremely strange, IMHO.
An example, just in case my English is worse than I though:
Initial position, assuming b is LRU and D is active, opening G:
a b c D e f
Current behavior:
a G c D e f
Wanted behavior:
a c D G e f
I disliked the tab placement before, but I really dislike the way it works in Eclipse Juno. The Eclipse team claims that they have never gotten above 20% of their users liking a tab placement method.
Anyway, the good news is that customizing tab placement may get easier in the future, and if you dislike the current style you can go back to the old style relatively easily.
Comparison of tab placement styles
MRU style (older): The n most recently used tabs are always displayed.
Array style (newer): New tabs always go at the end of an infinite array of tabs. Then the visible set of tabs is scrolled until the selected tab is visible.
Suppose the window is sized very small, so that only 3 tabs are visible at once. Here's how the two styles will place things, given that we've already opened tabs "A" and "B" and are about to open tab "C". I'll capitalize the tab being added for visibility:
Tab | Old New
opened | Visible | Hidden | Visible | Hidden
----------------------------------------------------
C | abC | | abC |
----------------------------------------------------
D | Dbc | a | bcD | a
----------------------------------------------------
E | dEc | ab | cdE | ab
----------------------------------------------------
A | deA | bc | Abc | de
----------------------------------------------------
F | Fea | bcd | deF | abc
----------------------------------------------------
D | fDa | bce | Def | abc
Selecting a tab placement style
As described in other StackOverflow questions Eclipse tabs repositionning and Retain previous open file tab under visible tabs, it's possible to choose between the two styles by installing the Eclipse E4 CSS editor plugin and then in Preferences > General > Appearance changing
.MPartStack {
font-size: 12;
swt-simple: false;
swt-mru-visible: false;
}
to
.MPartStack {
font-size: 12;
swt-simple: false;
swt-mru-visible: true;
}
Have you read the following?
https://bugs.eclipse.org/bugs/show_bug.cgi?id=68684
Because i remember reading about this issue.
There is no direct way achieve it. [As per my knowledge.]
As mikezx6r said in his comment: You will require to build an eclipse plugin or you can an eclipse view that works as per your need. For your information: In the Eclipse Platform a view is typically used to navigate a hierarchy of information, open an editor, or display properties for the active editor
To know how to create an eclipse view here is a tutorial kinda stuff for you.
Hope this helps.
i like emacs in terminal,but the blue color of mini buffer is hard to see clearly.
really need it,thanks for help!
Try this,
(set-face-foreground 'minibuffer-prompt "white")
If you can't stand your terminal's blue color, you can probably change it. The different terminal emulators have different tools for this, but most use X resources.
My own personal color choices for urxvt:
URxvt.background: #000000
URxvt.foreground: gray75
URxvt.color3: DarkGoldenrod
URxvt.color4: RoyalBlue
URxvt.color11: LightGoldenrod
URxvt.color12: LightSteelBlue
URxvt.color7: gray75
URxvt.colorBD: #ffffff
URxvt.colorUL: LightSlateGrey
URxvt.colorIT: SteelBlue
URxvt.cursorColor: grey90
URxvt.highlightColor: grey25
But of course, your own terminal emulator of choice may have a different class (URxvt) or application (urxvt, not used in my example) name, and the resource names may be different as well. urxvt will use color names (from the server's rgb.txt file -- use xcolorsel(1) to see them in a handy application) or numbers, but other terminals may not be this flexible.
From my xterm(1) manpage, the colors and their numbers are:
0 black
1 red3
2 green3
3 yellow3
4 a customizable dark blue
5 magenta3
6 cyan3
7 gray90
8 gray30
9 red
10 green
11 yellow
12 a customizable light blue
13 magenta
14 cyan
15 white
If your terminal does use X resources, save your desired resources to a file (by convention named ~/.Xdefaults or ~/.Xresources) and use xrdb -merge <filename> to load your resources into the server. Then start your terminal again, and try it out.
If your terminal uses some other mechanism to configure color choices (perhaps it has a Preferences menu item or something similar), it will probably still have different colors listed somewhere, and you'll need to change colors 4 and 12 to change the blue color.
On the other hand, if you like the blue for everything except emacs, you can either try to get emacs to use a different color (no idea there, sorry), or you can run your terminal emulator with a different "class", so it will read different X resources. (xterm(1) has a -class parameter for this.)